list_archived_documents
Retrieve archived documents from Outline wiki to restore or review previous content. Specify a limit to control the number of documents returned.
Instructions
Get list of archived documents.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No |
Implementation Reference
- src/lib/handlers/documents.ts:145-150 (handler)Handler function that fetches archived documents from the Outline API using the provided limit and formats the response using formatArchivedDocuments.async list_archived_documents(args: ListArchivedDocumentsInput) { const { data } = await apiCall(() => apiClient.post<OutlineDocument[]>('/documents.archived', { limit: args.limit }) ); return formatArchivedDocuments(data || []); },
- src/lib/schemas.ts:70-70 (schema)Zod schema definition for the input of list_archived_documents tool, specifying an optional limit parameter defaulting to 25.export const listArchivedDocumentsSchema = z.object({ limit: limit.default(25) });
- src/lib/schemas.ts:227-227 (schema)Mapping of the tool name 'list_archived_documents' to its Zod schema in the central toolSchemas object.list_archived_documents: listArchivedDocumentsSchema,
- src/lib/tools.ts:112-116 (registration)Registration of the 'list_archived_documents' tool in the allTools array, converting the Zod schema to JSON schema for MCP.createTool( 'list_archived_documents', 'Get list of archived documents.', 'list_archived_documents' ),