doc_connect
Link documents to AI agents by adding 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 handler logic for the 'doc_connect' tool. It performs a POST request to the Pickaxe API '/studio/document/connect' endpoint with the required documentId and pickaxeId parameters, and returns the JSON-formatted response.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:175-189 (schema)Input schema for the 'doc_connect' tool defining the expected parameters: optional 'studio', required 'documentId' and 'pickaxeId'.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"], },
- src/index.ts:172-190 (registration)Registration of the 'doc_connect' tool in the tools array, including name, description, and input schema. This array is used by the MCP server to list available tools.{ 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"], }, },