Skip to main content
Glama

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
NameRequiredDescriptionDefault
limitNo

Implementation Reference

  • 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 || []); },
  • 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) });
  • 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' ),
  • Inclusion of the list_trash schema in the central toolSchemas mapping used for tool definitions.
    list_trash: listTrashSchema,
  • TypeScript type definition for ListTrashInput inferred from the listTrashSchema.
    export type ListTrashInput = z.infer<typeof listTrashSchema>;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/huiseo/outline-smart-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server