Agent / foldkit-agent-webmcp

ToolDescriptor

interface · packages/agent-webmcp/src/webmcp.ts:22

interface ToolDescriptor {
  readonly name: string
  readonly description: string
  readonly inputSchema: Record<string, unknown>
  readonly execute: (
    input: any,
    context: ToolExecutionContext,
  ) => Promise<ToolResult>
}

A tool registration as accepted by document.modelContext.registerTool.

Members

ToolDescriptor.name

property · packages/agent-webmcp/src/webmcp.ts:23

readonly name: string

ToolDescriptor.description

property · packages/agent-webmcp/src/webmcp.ts:24

readonly description: string

ToolDescriptor.inputSchema

property · packages/agent-webmcp/src/webmcp.ts:25

readonly inputSchema: Record<string, unknown>

ToolDescriptor.execute

property · packages/agent-webmcp/src/webmcp.ts:26

readonly execute: (
  input: any,
  context: ToolExecutionContext,
) => Promise<ToolResult>