get_page
Retrieve the complete content of a BookStack documentation page by specifying its unique page ID. Use this tool to access detailed information stored in your knowledge management system.
Instructions
Get full content of a specific page
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Page ID |
Implementation Reference
- src/bookstack-client.ts:381-384 (handler)The actual implementation of fetching a page by ID using the BookStack API client.
async getPage(id: number): Promise<any> { const response = await this.client.get(`/pages/${id}`); return await this.enhancePageResponse(response.data); } - src/index.ts:179-194 (registration)Registration of the 'get_page' tool and its handler logic, which calls the BookStack client.
server.registerTool( "get_page", { title: "Get Page Content", description: "Get full content of a specific page", inputSchema: { id: z.coerce.number().min(1).describe("Page ID") } }, async (args) => { const page = await client.getPage(args.id); return { content: [{ type: "text", text: JSON.stringify(page, null, 2) }] }; } );