doc_create
Create documents in Pickaxe knowledge bases from text content or by scraping website URLs. Specify studio environment and document name for structured content management.
Instructions
Create a new document in Pickaxe knowledge base. Can create from raw content or scrape a website URL.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| studio | No | Studio name to use. Available: STAGING, MAIN, DEV, PRODUCTION. Default: PRODUCTION | |
| name | Yes | Name/title of the document | |
| rawContent | No | Raw text content for the document. Use this OR website, not both. | |
| website | No | URL to scrape as document content. Use this OR rawContent, not both. |
Implementation Reference
- src/index.ts:486-492 (handler)Handler logic for the 'doc_create' tool. Constructs a request body with the document name and optional raw content or website URL, then makes a POST request to the Pickaxe API to create the document.case "doc_create": { const body: Record<string, unknown> = { name: args.name }; if (args.rawContent) body.rawContent = args.rawContent; if (args.website) body.website = args.website; const result = await pickaxeRequest("/studio/document/create", "POST", body, studio); return JSON.stringify(result, null, 2); }
- src/index.ts:152-170 (schema)Input schema for the 'doc_create' tool, defining required 'name' and optional 'studio', 'rawContent', or 'website' parameters.inputSchema: { type: "object", properties: { studio: studioParam, name: { type: "string", description: "Name/title of the document", }, rawContent: { type: "string", description: "Raw text content for the document. Use this OR website, not both.", }, website: { type: "string", description: "URL to scrape as document content. Use this OR rawContent, not both.", }, }, required: ["name"], },
- src/index.ts:149-171 (registration)Registration of the 'doc_create' tool in the global tools array, which is exposed via the ListToolsRequestSchema handler.{ name: "doc_create", description: "Create a new document in Pickaxe knowledge base. Can create from raw content or scrape a website URL.", inputSchema: { type: "object", properties: { studio: studioParam, name: { type: "string", description: "Name/title of the document", }, rawContent: { type: "string", description: "Raw text content for the document. Use this OR website, not both.", }, website: { type: "string", description: "URL to scrape as document content. Use this OR rawContent, not both.", }, }, required: ["name"], }, },