ADK for TypeScript: API Reference
    Preparing search index...

    Interface WebMCPToolParams

    参数(用于……) WebMCPTool.

    interface WebMCPToolParams {
        document?: WebMCPDocument;
        name?: string;
        tool: WebMCPRegisteredTool;
    }
    document?: WebMCPDocument

    需要阅读的文档 modelContext `from`:默认值为全局文档(`global document`)。

    name?: string

    该设置用于覆盖模型中显示的名称;工具集会使用该名称来为其生成的字符串添加前缀。默认情况下,该名称为工具本身的名称。

    根据报道,该工具具有以下特点: document.modelContext.getTools().