outline_list_collections
Retrieve all document collections from Outline to organize and manage your structured content efficiently.
Instructions
List all collections in Outline
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/outline-client.ts:188-197 (handler)The `getCollections` method implementation in `OutlineClient`, which is responsible for fetching collections from the Outline API.
async getCollections(): Promise<Collection[]> { const endpoints = ['/api/collections.list', '/api/collections/list', '/api/collections', '/api/collection/list']; for (const endpoint of endpoints) { try { const response = await this.api.post(endpoint, {}); return response.data.data || response.data; } catch (error: any) { if (error.response?.status === 404 && endpoint !== endpoints[endpoints.length - 1]) { console.error(`Endpoint ${endpoint} not found, trying next...`); - src/index.ts:284-295 (registration)The tool `outline_list_collections` handler within the main MCP tool execution block.
case 'outline_list_collections': return { content: [ { type: 'text', text: JSON.stringify( await this.outlineClient.getCollections(), null, 2 ), }, ],