ToolDescriptor
Tool descriptor for the Web Model Context API.
Tools are functions that AI models can call to perform actions or retrieve information. This interface uses JSON Schema for input validation.
https://spec.modelcontextprotocol.io/specification/server/tools/
Properties
Link copied to clipboard
Optional behavior hints for LLM planners.
Link copied to clipboard
Human-readable summary of what the tool does.
Link copied to clipboard
abstract var execute: (args: ReadonlyRecord<JsString, *>, context: ToolExecutionContext) -> PromiseLike<CallToolResult>
Tool execution function.
Link copied to clipboard
JSON Schema describing accepted input arguments.
Link copied to clipboard
Optional JSON Schema describing output payload shape.