pageAll
Retrieve and manage all pages within Routine's platform to organize calendars, tasks, and notes efficiently in one centralized interface.
Instructions
All pages.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools.ts:178-196 (handler)Handler for the 'pageAll' MCP tool. It calls the underlying RPC 'page.all' via sendRpcRequest with no parameters, stringifies the result as JSON, and returns it as text content. Includes error handling returning an error message.server.tool("pageAll", "All pages.", {}, async ({}) => { try { const data = await sendRpcRequest("page.all", []); return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }], }; } catch (error) { logger.error("Error fetching page.all: %o", error); return { content: [ { type: "text", text: `Error fetching auth id: ${error instanceof Error ? error.message : String(error)}`, }, ], isError: true, }; } });
- src/index.ts:234-234 (registration)Call to registerServerTools which registers the pageAll tool (among others) on the MCP server.registerServerTools(server, sendRpcRequest, logger);
- src/tools.ts:5-5 (registration)The registerServerTools function that contains the server.tool registration for pageAll.export function registerServerTools(server, sendRpcRequest, logger) {