list_trash
Retrieve deleted documents from Outline wiki trash to restore or permanently remove them, with configurable limit options for efficient document management.
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 core handler function for the 'list_trash' tool. It calls the Outline API endpoint '/documents.deleted' with the provided limit, fetches the list of 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, specifying an optional 'limit' parameter defaulting to 25.export const listTrashSchema = z.object({ limit: limit.default(25) });
- src/lib/tools.ts:117-121 (registration)Registration of the 'list_trash' tool in the allTools array, providing name, description, and linking to its schema via createTool.createTool( 'list_trash', 'Get list of documents in trash.', 'list_trash' ),
- src/lib/schemas.ts:228-228 (schema)Inclusion of the list_trash schema in the central toolSchemas mapping used for tool definitions.list_trash: listTrashSchema,
- src/lib/schemas.ts:185-185 (schema)TypeScript type definition for ListTrashInput inferred from the listTrashSchema.export type ListTrashInput = z.infer<typeof listTrashSchema>;