resource

call a tool on the MCP server described by the resource

Changed on
post/w/{workspace}/resources/mcp_call_tool/{path}

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/w/{workspace}/resources/mcp_call_tool/{path}
  • Auth: one of:
    • HTTP bearer
    • API key in cookie token

Path parameters

workspacestring required
pathstring required

Request body

toolstring required
argumentsobject
read_onlyboolean

set when the caller ran the tool without asking the user to confirm it; the call is refused unless the server's live listing marks the tool read-only

Response

the MCP tool result, forwarded verbatim. A tool that ran but failed returns 200 with isError true.

contentobject[]
structuredContentobject
isErrorboolean

Changes