list_archived_documents
Retrieve archived documents from Outline wiki to restore or reference previous content, with configurable result limits.
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 handler function that executes the list_archived_documents tool. It calls the Outline API to fetch archived documents with the given 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 input schema for list_archived_documents tool, defining an optional 'limit' parameter defaulting to 25.export const listArchivedDocumentsSchema = z.object({ limit: limit.default(25) });
- src/lib/tools.ts:112-116 (registration)Registration of the list_archived_documents tool in the allTools array, specifying name, description, and linking to its Zod schema.createTool( 'list_archived_documents', 'Get list of archived documents.', 'list_archived_documents' ),
- src/lib/schemas.ts:184-184 (schema)TypeScript type definition for the input parameters of list_archived_documents, inferred from the Zod schema.export type ListArchivedDocumentsInput = z.infer<typeof listArchivedDocumentsSchema>;
- src/lib/schemas.ts:227-227 (schema)The schema is mapped to the tool name in the toolSchemas object used for tool definitions.list_archived_documents: listArchivedDocumentsSchema,