list-categories
Retrieve all available categories from note.com to organize content, filter articles by topic, and navigate the platform's content structure effectively.
Instructions
カテゴリー一覧を取得する
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/user-tools.ts:130-141 (handler)Full tool registration including the handler function that fetches category list from `/v2/categories` API endpoint and handles errors using shared utilities."list-categories", "カテゴリー一覧を取得する", {}, async () => { try { const data = await noteApiRequest(`/v2/categories`, "GET"); return createSuccessResponse(data.data || data); } catch (error) { return handleApiError(error, "カテゴリー取得"); } } );
- src/tools/index.ts:16-16 (registration)Calls registerUserTools which registers the list-categories tool among others.registerUserTools(server);
- src/note-mcp-server-http.ts:215-221 (schema)Static schema definition for tools/list response in HTTP transport.name: "list-categories", description: "note.comのカテゴリー一覧を取得", inputSchema: { type: "object", properties: {}, required: [] }
- src/note-mcp-server-http.ts:909-924 (handler)Fallback handler implementation for list-categories in HTTP/SSE transport JSON-RPC handling.} else if (name === "list-categories") { // list-categoriesツールの実装 const data = await noteApiRequest( `/v2/categories`, "GET", null, true ); result = { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };