arcade-mcp/schemas/preview/invoke_tool_request.schema.jsonc
Nate Barbettini 14998a43e3
Add ToolContext and OAuth tool support (#10)
- Adds initial `ToolContext` to tool invocations
- This unlocks the ability to call authenticated tools (e.g. Gmail),
which works in this branch against Nate's dev engine
2024-08-02 11:25:08 -07:00

73 lines
1.8 KiB
Text

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"$schema": {
// Explicitly allow JSON-Schema to be referenced (needed due to additionalProperties: false)
"type": "string",
"format": "uri"
},
"run_id": {
"type": "string",
"description": "ID of the overall run"
},
"invocation_id": {
"type": "string",
"description": "ID of this specific tool call"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"tool": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tool to invoke"
},
"version": {
"type": "string",
"description": "Version of the named tool to invoke"
}
},
"required": ["name", "version"],
"additionalProperties": false
},
"inputs": {
"type": "object",
"additionalProperties": true
},
"context": {
"type": "object",
"properties": {
"authorization": {
"type": "object",
"properties": {
"token": {
"type": "string"
},
"additionalProperties": false
}
},
"user": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "A unique ID that identifies the user"
},
"name": {
"type": "string",
"description": "The name of the user"
}
},
"required": ["id"],
"additionalProperties": false
}
}
}
},
"required": ["run_id", "invocation_id", "created_at", "tool", "inputs", "context"],
"additionalProperties": false
}