list_recent_documents
Retrieve recently modified documents from Outline Wiki to track changes and stay updated on content revisions.
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 handler function that implements the core logic: calls Outline API to list recent documents sorted by updatedAt DESC and formats the results.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: optional limit (default 10).export const listRecentDocumentsSchema = z.object({ limit: limit.default(10) });
- src/lib/tools.ts:56-60 (registration)Registers the tool in allTools[] with MCP-compatible JSON schema derived from Zod schema.createTool( 'list_recent_documents', 'Get list of recently modified documents.', 'list_recent_documents' ),
- src/lib/schemas.ts:217-217 (registration)Maps tool name to schema in central toolSchemas record used by tool definitions.list_recent_documents: listRecentDocumentsSchema,