clickup_get_page
Retrieve specific pages from ClickUp documents using document and page IDs to access workspace content.
Instructions
Get a page from a ClickUp doc
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ClickUp doc ID | |
| page_id | Yes | ClickUp page ID |
Implementation Reference
- src/services/docs.service.ts:63-67 (handler)Core implementation of fetching a ClickUp page by making an API GET request to the ClickUp API endpoint.async getPage(docId: string, pageId: string): Promise<ClickUpDocPage> { return this.request<ClickUpDocPage>( `/${this.workspaceId}/docs/${docId}/pages/${pageId}` ); }
- src/controllers/docs.controller.ts:97-110 (registration)Defines and registers the 'clickup_get_page' MCP tool, including Zod input schema and a thin handler wrapper that delegates to DocsService.getPage and formats the response.const getPageTool = defineTool((z) => ({ name: "clickup_get_page", description: "Get a page from a ClickUp doc", inputSchema: { doc_id: z.string().describe("ClickUp doc ID"), page_id: z.string().describe("ClickUp page ID"), }, handler: async (input) => { const response = await docsService.getPage(input.doc_id, input.page_id); return { content: [{ type: "text", text: JSON.stringify(response) }], }; }, }));
- Zod input schema for the tool defining doc_id and page_id parameters.inputSchema: { doc_id: z.string().describe("ClickUp doc ID"), page_id: z.string().describe("ClickUp page ID"), }, handler: async (input) => { const response = await docsService.getPage(input.doc_id, input.page_id); return { content: [{ type: "text", text: JSON.stringify(response) }], }; }, }));