list_collections
Retrieve all available collections from Outline wiki for document organization and management.
Instructions
Get list of all collections.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/lib/handlers/search.ts:56-61 (handler)The handler function that executes the list_collections tool by calling the Outline API endpoint '/collections.list' and formatting the results using formatCollections.async list_collections() { const { data } = await apiCall(() => apiClient.post<OutlineCollection[]>('/collections.list') ); return formatCollections(data || []); },
- src/lib/schemas.ts:33-33 (schema)Zod schema definition for the list_collections tool input, which takes no parameters.export const listCollectionsSchema = z.object({});
- src/lib/tools.ts:46-50 (registration)Registers the list_collections tool in the MCP tool definitions array, providing name, description, and schema reference.createTool( 'list_collections', 'Get list of all collections.', 'list_collections' ),