Skip to main content
Glama
Leanware-io

ClickUp MCP Integration

by Leanware-io

clickup_edit_page

Update ClickUp document pages by modifying names, subtitles, or markdown content using replace, append, or prepend modes.

Instructions

Edit a page in a ClickUp doc

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentNoPage content in markdown format
content_edit_modeNoContent edit mode (replace, append, prepend), default is replace
doc_idYesClickUp doc ID
nameNoPage name
page_idYesClickUp page ID
sub_titleNoPage subtitle

Implementation Reference

  • Core handler logic for editing a ClickUp doc page via API PUT request, constructing payload from EditPageParams.
    async editPage(params: EditPageParams): Promise<ClickUpDocPage> { const { docId, pageId, name, sub_title, content, content_edit_mode } = params; const pageData = { name, sub_title, content, content_edit_mode: content_edit_mode || "replace", content_format: "text/md", }; return this.request<ClickUpDocPage>( `/${this.workspaceId}/docs/${docId}/pages/${pageId}`, { method: "PUT", body: JSON.stringify(pageData), } ); }
  • Tool registration for 'clickup_edit_page' including Zod input schema validation and wrapper handler delegating to DocsService.editPage.
    const editPageTool = defineTool((z) => ({ name: "clickup_edit_page", description: "Edit a page in a ClickUp doc", inputSchema: { doc_id: z.string().describe("ClickUp doc ID"), page_id: z.string().describe("ClickUp page ID"), name: z.string().optional().describe("Page name"), sub_title: z.string().optional().describe("Page subtitle"), content: z.string().optional().describe("Page content in markdown format"), content_edit_mode: z .string() .optional() .describe( "Content edit mode (replace, append, prepend), default is replace" ), }, handler: async (input) => { const pageParams: EditPageParams = { docId: input.doc_id, pageId: input.page_id, name: input.name, sub_title: input.sub_title, content: input.content, content_edit_mode: input.content_edit_mode, }; const response = await docsService.editPage(pageParams); return { content: [{ type: "text", text: JSON.stringify(response) }], }; }, }));
  • TypeScript interface defining the parameters structure for the editPage method, used in service and controller.
    export interface EditPageParams { docId: string; pageId: string; name?: string; sub_title?: string; content?: string; content_edit_mode?: string; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Leanware-io/clickup-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server