clickup_get_page
Retrieve specific pages from ClickUp documents using document and page IDs to access workspace content programmatically.
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
- The tool definition, input schema, and handler implementation for 'clickup_get_page'. The handler calls docsService.getPage to fetch the page data.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) }], }; }, }));
- src/services/docs.service.ts:63-67 (helper)The DocsService method that executes the HTTP GET request to the ClickUp API to retrieve the specified page.async getPage(docId: string, pageId: string): Promise<ClickUpDocPage> { return this.request<ClickUpDocPage>( `/${this.workspaceId}/docs/${docId}/pages/${pageId}` ); }
- Zod-based input schema validation for the tool parameters: doc_id and page_id.inputSchema: { doc_id: z.string().describe("ClickUp doc ID"), page_id: z.string().describe("ClickUp page ID"),
- src/controllers/docs.controller.ts:176-176 (registration)Export of the getPageTool for use in tool registration.getPageTool,