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 primary handler function implementing the unarchive_document tool logic. It performs an access check and calls the Outline API to unarchive the specified document.
    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: an object with a required 'documentId' string.
    export const unarchiveDocumentSchema = z.object({ documentId });
  • Registration of the unarchive_document tool in the allTools array, specifying its name, description, and linking to the Zod schema.
    createTool( 'unarchive_document', 'Restore an archived document.', 'unarchive_document' ),
  • Inclusion of unarchiveDocumentSchema in the central toolSchemas registry map.
    unarchive_document: unarchiveDocumentSchema,
  • Lists 'unarchive_document' in WRITE_TOOLS set for access control checks in read-only mode.
    'unarchive_document',

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