trash_document
Move a document to the trash in Basecamp by specifying the project ID and document ID. This tool helps declutter workspaces and manage content efficiently within the Basecamp MCP Server.
Instructions
Move a document to trash
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | Document ID | |
| project_id | Yes | Project ID |
Implementation Reference
- src/lib/basecamp-client.ts:366-368 (handler)The trashDocument method in BasecampClient class that implements the core logic of trashing a document by sending a DELETE request to the Basecamp API.async trashDocument(projectId: string, documentId: string): Promise<void> { await this.client.delete(`/buckets/${projectId}/documents/${documentId}.json`); }
- src/index.ts:447-458 (registration)Registers the 'trash_document' tool in the MCP server's list of tools, providing the name, description, and input schema.{ name: 'trash_document', description: 'Move a document to trash', inputSchema: { type: 'object', properties: { project_id: { type: 'string', description: 'Project ID' }, document_id: { type: 'string', description: 'Document ID' }, }, required: ['project_id', 'document_id'], }, },
- src/index.ts:447-458 (schema)Defines the input schema for the 'trash_document' tool, specifying required project_id and document_id parameters.{ name: 'trash_document', description: 'Move a document to trash', inputSchema: { type: 'object', properties: { project_id: { type: 'string', description: 'Project ID' }, document_id: { type: 'string', description: 'Document ID' }, }, required: ['project_id', 'document_id'], }, },