Skip to main content
Glama

unarchive_document

Restore archived documents in Outline wiki by providing the document ID to make them accessible again for editing and viewing.

Instructions

Restore an archived document.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
documentIdYes

Implementation Reference

  • The core handler function for the unarchive_document tool. It performs access check and calls the Outline API /documents.unarchive endpoint with the document ID.
    async unarchive_document(args: UnarchiveDocumentInput) { checkAccess(config, 'unarchive_document'); const { data } = await apiCall(() => apiClient.post<OutlineDocument>('/documents.unarchive', { id: args.documentId }) ); return { id: data.id, title: data.title, message: MESSAGES.DOCUMENT_UNARCHIVED }; },
  • Zod schema defining the input for unarchive_document: requires a valid documentId string.
    export const unarchiveDocumentSchema = z.object({ documentId });
  • Registers the unarchive_document tool in the allTools array, providing name, description, and linking to its Zod schema for MCP tool definition.
    createTool( 'unarchive_document', 'Restore an archived document.', 'unarchive_document' ),
  • Maps the tool name 'unarchive_document' to its schema in the central toolSchemas object used by tool definitions.
    unarchive_document: unarchiveDocumentSchema,
  • Includes the document handlers (containing unarchive_document) into the complete set of tool handlers.
    ...createDocumentHandlers(ctx),

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-smart-mcp'

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