get_page
Retrieve detailed information and content from a specific BookStack wiki page using its unique ID to access documentation, articles, or knowledge base entries.
Instructions
Get details and content of a specific page
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Page ID |
Implementation Reference
- src/tools/content-tools.ts:677-681 (handler)Handler for the 'get_page' tool: parses the page ID from arguments, calls client.getPage(id), and returns formatted API response.case "get_page": { const id = parseInteger(args.id); const result = await client.getPage(id); return formatApiResponse(result); }
- src/tools/content-tools.ts:307-317 (schema)Input schema for 'get_page' tool: requires an object with 'id' as number (Page ID).{ name: "get_page", description: "Get details and content of a specific page", inputSchema: { type: "object", properties: { id: { type: "number", description: "Page ID" }, }, required: ["id"], }, },
- src/index.ts:76-100 (registration)'get_page' is listed in contentToolNames array used to dispatch calls to handleContentTool in the MCP CallToolRequest handler.const contentToolNames = [ "list_books", "get_book", "create_book", "update_book", "delete_book", "export_book", "list_chapters", "get_chapter", "create_chapter", "update_chapter", "delete_chapter", "export_chapter", "list_pages", "get_page", "create_page", "update_page", "delete_page", "export_page", "list_shelves", "get_shelf", "create_shelf", "update_shelf", "delete_shelf", ];
- src/index.ts:56-59 (registration)Tool definitions including 'get_page' schema from createContentTools are added to allTools, returned by ListToolsRequestHandler.const allTools: Tool[] = [ ...createContentTools(bookStackClient), ...createSearchAndUserTools(bookStackClient), ];
- src/lib/bookstack-client.ts:206-209 (helper)BookStackClient.getPage method: API call to fetch specific page by ID, used by the tool handler.async getPage(id: number): Promise<Page> { const response: AxiosResponse<Page> = await this.api.get(`/pages/${id}`); return response.data; }