For AI agents: the complete documentation index is available at https://scriptedalchemy.github.io/agent-bundle/zh/llms.txt, the full documentation bundle is available at https://scriptedalchemy.github.io/agent-bundle/zh/llms-full.txt, and this page is available as Markdown at https://scriptedalchemy.github.io/agent-bundle/zh/api/functions/test.invokeMcpTool.md.
  • 简体中文
  • Function: invokeMcpTool()

    invokeMcpTool(tool, ...__namedParameters): Promise<McpToolInvocation>

    Calls one compiled tool through the real protocol and returns the projected result. mcp-in-memory level: protocol contract proof, not process proof.

    Parameters

    tool

    string

    __namedParameters

    ...HarnessOptionsArguments<McpInvocationOptions>

    Returns

    Promise<McpToolInvocation>