content-save
Save source documents as context for AI content generation, supporting job applications, B2B sales, and strategy documents.
Instructions
Save a source document for use as context in AI generation. Returns success status.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docType | Yes | Type of source document | |
| content | Yes | Document content text |
Implementation Reference
- src/tools/content.ts:6-29 (registration)Registration and handler implementation of the 'content-save' tool.
server.tool( "content-save", "Save a source document for use as context in AI generation. Returns success status.", { docType: z.enum([ "original_cv", "extensive_cv", "cover_letter", "cv_strategy", "cover_letter_strategy", "cold_email_strategy", "recon_strategy", "company_context", ]).describe("Type of source document"), content: z.string().describe("Document content text"), }, async (params) => { try { const result = await client.content.save({ docType: params.docType, content: params.content, } as any); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (err) { const message = err instanceof Error ? err.message : String(err); return { content: [{ type: "text", text: `Error: ${message}` }], isError: true }; } }, );