doc_get
Retrieve specific documents by ID from the Pickaxe platform for managing AI agents, knowledge bases, and analytics across multiple studio environments.
Instructions
Retrieve a specific document by ID.
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 retrieve |
Implementation Reference
- src/index.ts:513-516 (handler)Handler implementation for the 'doc_get' tool. It makes a GET request to the Pickaxe API endpoint `/studio/document/{documentId}` and returns the JSON result.case "doc_get": { const result = await pickaxeRequest(`/studio/document/${args.documentId}`, "GET", undefined, studio); return JSON.stringify(result, null, 2); }
- src/index.ts:231-241 (schema)Input schema definition for the 'doc_get' tool, specifying parameters like studio (optional) and required documentId.inputSchema: { type: "object", properties: { studio: studioParam, documentId: { type: "string", description: "The document ID to retrieve", }, }, required: ["documentId"], },
- src/index.ts:228-242 (registration)Registration of the 'doc_get' tool in the tools array, including name, description, and input schema.{ name: "doc_get", description: "Retrieve a specific document by ID.", inputSchema: { type: "object", properties: { studio: studioParam, documentId: { type: "string", description: "The document ID to retrieve", }, }, required: ["documentId"], }, },