update_document
Modify Basecamp 3 documents by updating titles and HTML content using project and document IDs for precise file management within the Basecamp MCP Server.
Instructions
Update a document
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | New HTML content | |
| document_id | Yes | Document ID | |
| project_id | Yes | Project ID | |
| title | No | New title |
Implementation Reference
- src/lib/basecamp-client.ts:352-364 (handler)The core handler function that executes the tool logic by making a PUT request to update the document title and/or content in Basecamp.async updateDocument( projectId: string, documentId: string, title?: string, content?: string ): Promise<Document> { const data: any = {}; if (title) data.title = title; if (content) data.content = content; const response = await this.client.put(`/buckets/${projectId}/documents/${documentId}.json`, data); return response.data; }
- src/index.ts:433-446 (schema)The input schema and description for the 'update_document' tool, registered in the MCP server's tools list.{ name: 'update_document', description: 'Update a document', inputSchema: { type: 'object', properties: { project_id: { type: 'string', description: 'Project ID' }, document_id: { type: 'string', description: 'Document ID' }, title: { type: 'string', description: 'New title' }, content: { type: 'string', description: 'New HTML content' }, }, required: ['project_id', 'document_id'], }, },