list_trash
Retrieve deleted documents from Outline wiki trash to review or restore them. Specify a limit to control how many items appear in the results.
Instructions
Get list of documents in trash.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No |
Implementation Reference
- src/lib/handlers/documents.ts:152-157 (handler)The main handler function for the 'list_trash' tool. It calls the Outline API '/documents.deleted' endpoint to fetch deleted documents and formats the response using formatTrashDocuments.async list_trash(args: ListTrashInput) { const { data } = await apiCall(() => apiClient.post<OutlineDocument[]>('/documents.deleted', { limit: args.limit }) ); return formatTrashDocuments(data || []); },
- src/lib/schemas.ts:71-71 (schema)Zod input schema definition for the list_trash tool, defining an optional 'limit' parameter defaulting to 25.export const listTrashSchema = z.object({ limit: limit.default(25) });
- src/lib/schemas.ts:228-228 (registration)Registration of the listTrashSchema under the 'list_trash' key in the central toolSchemas map, used to generate tool definitions.list_trash: listTrashSchema,
- src/lib/tools.ts:118-121 (registration)Tool definition creation for 'list_trash' in the allTools array, converting the Zod schema to JSON Schema for MCP protocol.'list_trash', 'Get list of documents in trash.', 'list_trash' ),
- src/lib/schemas.ts:185-185 (schema)TypeScript type definition for ListTrashInput inferred from listTrashSchema.export type ListTrashInput = z.infer<typeof listTrashSchema>;