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 fetches deleted documents from the Outline API endpoint '/documents.deleted' with an optional limit and formats the results 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 for list_trash tool defining the 'limit' parameter (number, default 25, min 1 max 100).export const listTrashSchema = z.object({ limit: limit.default(25) });
- src/lib/tools.ts:118-121 (registration)Registration of the 'list_trash' tool in the allTools array, linking the name, description, and schema.'list_trash', 'Get list of documents in trash.', 'list_trash' ),
- src/lib/schemas.ts:228-228 (schema)Entry in toolSchemas map associating 'list_trash' tool name with its Zod schema.list_trash: listTrashSchema,
- src/lib/schemas.ts:185-185 (schema)TypeScript type definition for ListTrashInput inferred from listTrashSchema.export type ListTrashInput = z.infer<typeof listTrashSchema>;