quip_create_document
Generate a new Quip document with a specified title and markdown content using the Quip MCP Server, enabling AI assistants to create and manage documents efficiently.
Instructions
Create a new Quip document
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Initial markdown content for the document | |
| title | Yes | Title of the new document |
Implementation Reference
- src/index.ts:270-287 (handler)The core handler function for the 'quip_create_document' tool. It logs the creation attempt and returns a response indicating that full implementation (via Python script) is not yet available.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:180-186 (handler)The switch case in the CallToolRequestHandler that validates input arguments and dispatches to the createDocument handler method.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)); }
- src/index.ts:119-136 (registration)The tool registration in the ListToolsRequestHandler, including name, description, and input schema definition.{ 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'], }, },