Skip to main content
Glama

coda_rename_page

Update the name of a specific page in a Coda document by specifying the document ID, page ID or name, and the new page name. Simplify document organization and clarity with this targeted renaming tool.

Instructions

Rename a page in the current document

Input Schema

NameRequiredDescriptionDefault
docIdYesThe ID of the document that contains the page to rename
newNameYesThe new name of the page
pageIdOrNameYesThe ID or name of the page to rename

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "docId": { "description": "The ID of the document that contains the page to rename", "type": "string" }, "newName": { "description": "The new name of the page", "type": "string" }, "pageIdOrName": { "description": "The ID or name of the page to rename", "type": "string" } }, "required": [ "docId", "pageIdOrName", "newName" ], "type": "object" }

Implementation Reference

  • Full tool definition including registration, input schema, and handler logic for 'coda_rename_page'. The handler calls the SDK's updatePage function to rename the page by setting the new name in the request body.
    server.tool( "coda_rename_page", "Rename a page in the current document", { docId: z.string().describe("The ID of the document that contains the page to rename"), pageIdOrName: z.string().describe("The ID or name of the page to rename"), newName: z.string().describe("The new name of the page"), }, async ({ docId, pageIdOrName, newName }): Promise<CallToolResult> => { try { const resp = await updatePage({ path: { docId, pageIdOrName }, body: { name: newName, }, throwOnError: true, }); return { content: [{ type: "text", text: JSON.stringify(resp.data) }] }; } catch (error) { return { content: [{ type: "text", text: `Failed to rename page: ${error}` }], isError: true }; } }, );

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/orellazri/coda-mcp'

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