doc_disconnect
Remove documents from a Pickaxe agent's knowledge base to manage content access and update information sources.
Instructions
Disconnect/unlink a document from a Pickaxe agent, removing it from 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 disconnect | |
| pickaxeId | Yes | The Pickaxe agent ID to disconnect the document from |
Implementation Reference
- src/index.ts:500-505 (handler)Handler for the 'doc_disconnect' tool. It calls the pickaxeRequest helper to POST to '/studio/document/disconnect' with documentId and pickaxeId, returning the JSON result.case "doc_disconnect": { const result = await pickaxeRequest("/studio/document/disconnect", "POST", { documentId: args.documentId, pickaxeId: args.pickaxeId, }, studio); return JSON.stringify(result, null, 2);
- src/index.ts:191-208 (schema)Tool definition including name, description, and input schema for 'doc_disconnect'. Requires documentId and pickaxeId; studio optional.{ name: "doc_disconnect", description: "Disconnect/unlink a document from a Pickaxe agent, removing it from the agent's knowledge base.", inputSchema: { type: "object", properties: { studio: studioParam, documentId: { type: "string", description: "The document ID to disconnect", }, pickaxeId: { type: "string", description: "The Pickaxe agent ID to disconnect the document from", }, }, required: ["documentId", "pickaxeId"], },