get_item
Retrieve detailed information about specific Qiita articles using their unique ID. Access article content, metadata, and author details from the Japanese developer community platform.
Instructions
指定された記事の詳細情報を取得します
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | 記事ID |
Implementation Reference
- src/tools/handlers.ts:92-95 (handler)Handler for the 'get_item' tool. Defines the Zod input schema (itemIdSchema) and the execute function that calls QiitaApiClient.getItem with the provided itemId.get_item: { schema: itemIdSchema, execute: async ({ itemId }, client) => client.getItem(itemId), },
- src/tools/definitions.ts:167-180 (schema)MCP tool schema definition for 'get_item', including name, description, and inputSchema requiring 'itemId'.{ name: 'get_item', description: '指定された記事の詳細情報を取得します', inputSchema: { type: 'object', properties: { itemId: { type: 'string', description: '記事ID', }, }, required: ['itemId'], }, },
- src/qiitaApiClient.ts:71-74 (helper)QiitaApiClient.getItem method: Fetches the Qiita item details by ID using the axios client and returns the data. This is called by the tool handler.async getItem(itemId: string) { const response = await this.client.get(`/items/${itemId}`); return response.data; }
- src/tools/handlers.ts:19-21 (schema)Zod schema for itemId input, reused by the get_item handler and others.const itemIdSchema = z.object({ itemId: z.string(), });
- src/tools/handlers.ts:193-193 (registration)Exports the toolHandlers object containing all tool definitions including get_item, which is imported and used in src/index.ts for tool execution.export { toolHandlers };