get_item
Retrieve detailed information about specific articles from the Qiita developer community platform using article IDs.
Instructions
指定された記事の詳細情報を取得します
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | 記事ID |
Implementation Reference
- src/tools/handlers.ts:92-95 (handler)Handler definition for the 'get_item' tool. Parses input using itemIdSchema and executes by calling client.getItem(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', specifying input schema with required 'itemId' string.{ name: 'get_item', description: '指定された記事の詳細情報を取得します', inputSchema: { type: 'object', properties: { itemId: { type: 'string', description: '記事ID', }, }, required: ['itemId'], }, },
- src/qiitaApiClient.ts:71-74 (helper)QiitaApiClient method that performs the actual HTTP GET request to retrieve the item details from Qiita API.async getItem(itemId: string) { const response = await this.client.get(`/items/${itemId}`); return response.data; }
- src/tools/handlers.ts:19-21 (schema)Zod schema used for input validation in the get_item handler.const itemIdSchema = z.object({ itemId: z.string(), });