list_recent_documents
Retrieve recently modified documents from Outline wiki to track updates and manage content changes.
Instructions
Get list of recently modified documents.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No |
Implementation Reference
- src/lib/handlers/search.ts:70-79 (handler)The main handler function for the 'list_recent_documents' tool. It calls the Outline API to list documents sorted by updatedAt in descending order (most recent first), limited by the input limit, and formats the results using formatRecentDocuments.async list_recent_documents(args: ListRecentDocumentsInput) { const { data } = await apiCall(() => apiClient.post<OutlineDocument[]>('/documents.list', { limit: args.limit, sort: 'updatedAt', direction: 'DESC', }) ); return formatRecentDocuments(data || [], baseUrl); },
- src/lib/schemas.ts:35-35 (schema)Zod schema defining the input for list_recent_documents: an optional 'limit' number (default 10, min 1, max 100).export const listRecentDocumentsSchema = z.object({ limit: limit.default(10) });
- src/lib/tools.ts:56-60 (registration)Registration of the tool definition in the allTools array using createTool, linking the name, description, and schema key.createTool( 'list_recent_documents', 'Get list of recently modified documents.', 'list_recent_documents' ),
- src/lib/schemas.ts:217-217 (schema)The tool schema is mapped in toolSchemas object for lookup by tool name.list_recent_documents: listRecentDocumentsSchema,
- src/lib/schemas.ts:217-217 (registration)Tool schema registration in the central toolSchemas map.list_recent_documents: listRecentDocumentsSchema,