clickup_get_doc_pages
Retrieve pages from a ClickUp document by specifying its ID to access content for analysis or integration purposes.
Instructions
Get pages from a ClickUp doc
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ClickUp doc ID |
Implementation Reference
- src/controllers/docs.controller.ts:89-94 (handler)Tool handler function that invokes docsService.getDocPages(input.doc_id) and formats the response as MCP content.handler: async (input) => { const response = await docsService.getDocPages(input.doc_id); return { content: [{ type: "text", text: JSON.stringify(response) }], }; },
- Input schema for the tool: requires 'doc_id' as string.inputSchema: { doc_id: z.string().describe("ClickUp doc ID"), },
- src/index.ts:89-91 (registration)Registers the clickup_get_doc_pages tool (along with others) to the McpServer instance.tools.forEach((tool) => { server.tool(tool.name, tool.description, tool.inputSchema, tool.handler); });
- src/services/docs.service.ts:57-61 (helper)Core implementation in DocsService: fetches doc pages via ClickUp API request to the pageListing endpoint.async getDocPages(docId: string): Promise<{ pages: ClickUpDocPage[] }> { return this.request<{ pages: ClickUpDocPage[] }>( `/${this.workspaceId}/docs/${docId}/pageListing` ); }