list_collections
Retrieve all available collections from Outline wiki to organize and access documents efficiently for content management workflows.
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. It calls the Outline API endpoint '/collections.list' to fetch collections and formats 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. It defines an empty object since the tool takes no parameters.export const listCollectionsSchema = z.object({});
- src/lib/tools.ts:46-50 (registration)Registration of the 'list_collections' tool in the allTools array. It uses createTool to generate the MCP tool definition from the Zod schema, including name, description, and input schema.createTool( 'list_collections', 'Get list of all collections.', 'list_collections' ),
- src/lib/schemas.ts:215-215 (schema)Mapping of the list_collections tool name to its schema in the toolSchemas record, used by tool definitions.list_collections: listCollectionsSchema,
- src/lib/schemas.ts:215-215 (registration)The toolSchemas map includes list_collections, linking the tool name to its input schema for use in MCP tool definitions.list_collections: listCollectionsSchema,