Skip to main content
Glama

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
NameRequiredDescriptionDefault
documentIdYes

Implementation Reference

  • 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); },
  • 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' ),
  • Maps the 'get_document' tool name to its schema in the toolSchemas record used by tool definitions.
    get_document: getDocumentSchema,

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/huiseo/outline-wiki-mcp'

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