doc_connect
Connect documents to AI agents by linking them to the agent's knowledge base for enhanced information access and processing.
Instructions
Connect/link a document to a Pickaxe agent, adding it to the agent's knowledge base.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| studio | No | Studio name to use. Available: STAGING, MAIN, DEV, PRODUCTION. Default: PRODUCTION | |
| documentId | Yes | The document ID to connect | |
| pickaxeId | Yes | The Pickaxe agent ID to connect the document to |
Implementation Reference
- src/index.ts:493-499 (handler)The execution handler for the 'doc_connect' tool. It calls the Pickaxe API endpoint /studio/document/connect with POST to link a document to an agent.case "doc_connect": { const result = await pickaxeRequest("/studio/document/connect", "POST", { documentId: args.documentId, pickaxeId: args.pickaxeId, }, studio); return JSON.stringify(result, null, 2); }
- src/index.ts:172-190 (schema)The input schema and metadata definition for the 'doc_connect' tool, registered in the tools list for MCP discovery.{ name: "doc_connect", description: "Connect/link a document to a Pickaxe agent, adding it to the agent's knowledge base.", inputSchema: { type: "object", properties: { studio: studioParam, documentId: { type: "string", description: "The document ID to connect", }, pickaxeId: { type: "string", description: "The Pickaxe agent ID to connect the document to", }, }, required: ["documentId", "pickaxeId"], }, },