is_tag_followed
Check if you follow a specific tag on Qiita to manage your developer community interests and content discovery.
Instructions
指定されたタグをフォローしているかどうかを確認します
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tagId | Yes | タグID |
Implementation Reference
- src/qiitaApiClient.ts:168-179 (handler)The core handler function that checks if the authenticated user follows a given tag by making a GET request to Qiita API's /tags/{tagId}/following endpoint. Returns { following: true } on success or { following: false } on 404 error.async isTagFollowed(tagId: string) { this.assertAuthenticated(); try { await this.client.get(`/tags/${tagId}/following`); return { following: true }; } catch (error: any) { if (error.response?.status === 404) { return { following: false }; } throw error; } }
- src/tools/definitions.ts:450-463 (schema)JSON schema definition for the 'is_tag_followed' tool, specifying the input parameter 'tagId' as a required string.{ name: 'is_tag_followed', description: '指定されたタグをフォローしているかどうかを確認します', inputSchema: { type: 'object', properties: { tagId: { type: 'string', description: 'タグID', }, }, required: ['tagId'], }, },
- src/tools/handlers.ts:149-152 (registration)Registration of the 'is_tag_followed' tool handler, using Zod schema for input validation and delegating to QiitaApiClient's isTagFollowed method.is_tag_followed: { schema: tagIdSchema, execute: async ({ tagId }, client) => client.isTagFollowed(tagId), },