quip_create_document
Create a new Quip document with a title and initial markdown content to start collaborative editing.
Instructions
Create a new Quip document
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Title of the new document | |
| content | Yes | Initial markdown content for the document |
Implementation Reference
- src/index.ts:270-287 (handler)The handler function that executes the quip_create_document tool logic. It currently stubs out the implementation, noting that document creation is not yet supported in the Python script.private async createDocument(title: string, content: string) { try { console.log(`Creating document "${title}"...`); // Not implemented in the Python script yet return { content: [ { type: 'text', text: `Document creation is not implemented in the current Python script. Please use the Quip web interface to create new documents.`, }, ], }; } catch (error) { console.error('Error creating document:', error); throw error; } }
- src/index.ts:119-136 (registration)Tool registration in the ListToolsRequestSchema handler, defining the tool's name, description, and input schema.{ name: 'quip_create_document', description: 'Create a new Quip document', inputSchema: { type: 'object', properties: { title: { type: 'string', description: 'Title of the new document' }, content: { type: 'string', description: 'Initial markdown content for the document' } }, required: ['title', 'content'], }, },
- src/index.ts:180-186 (registration)Dispatch handler in the CallToolRequestSchema switch statement that validates arguments and invokes the createDocument handler.case 'quip_create_document': { const typedArgs = args as any; if (!typedArgs.title || !typedArgs.content) { throw new McpError(ErrorCode.InvalidParams, 'title and content are required'); } return await this.createDocument(String(typedArgs.title), String(typedArgs.content)); }