openapi: 3.2.0
info:
title: Aptible Tool API
version: 1.0.0
description: 'Operations tagged Tool across 2 of this provider''s published API definitions: aptible-tool-api-openapi.yml, aptible-tool-server-openapi-original.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.aptible.com
description: Base URL declared by the provider in apis.yml (roadmap#122).
security:
- bearerAuth: []
tags:
- name: Tool
paths:
/tool/{tool_id}:
post:
operationId: callTool
summary: Query a specific tool
parameters:
- name: tool_id
in: path
required: true
schema:
type: string
description: The ID of the tool
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ToolCallPayload'
x-codegen-request-body-name: body
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/ToolCallResult'
'400':
description: Bad request
'401':
description: Unauthorized
'404':
description: Tool not found
tags:
- Tool
servers:
- url: https://api.aptible.com
description: Base URL declared by the provider in apis.yml (roadmap#122).
components:
schemas:
ToolCallPayload:
type: object
additionalProperties: true
description: Arbitrary JSON blob sent to the tool.
ToolCallResult:
type: object
required:
- result
properties:
result:
type: object
description: Arbitrary JSON result from the tool.
required:
- summary
properties:
summary:
type: string
description: A summary of the tool call result.
additionalProperties: true
additionalProperties: true
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: Token
x-refined-from:
- aptible-tool-api-openapi.yml
- aptible-tool-server-openapi-original.yml