list_archived_documents
Retrieve archived documents from Outline wiki to restore or reference past content. Specify limit to control results.
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)The core handler function that implements the list_archived_documents tool. It calls the Outline API endpoint '/documents.archived' with the limit parameter and formats the results 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 defining the input for list_archived_documents: an optional limit (default 25).export const listArchivedDocumentsSchema = z.object({ limit: limit.default(25) });
- src/lib/schemas.ts:227-227 (registration)Registration of the schema in the central toolSchemas map used for tool definitions.list_archived_documents: listArchivedDocumentsSchema,
- src/lib/tools.ts:112-116 (registration)Tool registration in allTools array, converting the Zod schema to JSON schema for MCP tool definition.createTool( 'list_archived_documents', 'Get list of archived documents.', 'list_archived_documents' ),
- src/lib/schemas.ts:184-184 (schema)TypeScript type inferred from the schema for use in handler signatures.export type ListArchivedDocumentsInput = z.infer<typeof listArchivedDocumentsSchema>;