get_document
Retrieve complete document content from Outline wiki using a document ID to access and work with specific wiki pages.
Instructions
Get full document content by document ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| documentId | Yes |
Implementation Reference
- src/lib/handlers/documents.ts:42-47 (handler)The core handler function for the 'get_document' tool. It calls the Outline API to fetch document details by ID and formats the response with a URL using formatDocumentInfo.async get_document(args: GetDocumentInput) { const { data } = await apiCall(() => apiClient.post<OutlineDocument>('/documents.info', { id: args.documentId }) ); return formatDocumentInfo(data, baseUrl); },
- src/lib/schemas.ts:39-39 (schema)Zod schema definition for the 'get_document' tool input, requiring a documentId string.export const getDocumentSchema = z.object({ documentId });
- src/lib/tools.ts:64-67 (registration)Registration of the 'get_document' tool in the allTools array, linking the name, description, and schema for MCP tool definition.'get_document', 'Get full document content by document ID.', 'get_document' ),
- src/lib/schemas.ts:218-218 (schema)Maps the 'get_document' tool name to its schema in the toolSchemas record used by tool definitions.get_document: getDocumentSchema,