follow_user
Follow a specific user on Qiita to track their articles and activities within the Japanese developer community platform.
Instructions
指定されたユーザーをフォローします
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | Yes | ユーザーID |
Implementation Reference
- src/tools/handlers.ts:153-156 (handler)The handler definition for the 'follow_user' tool, which validates input using userIdSchema and executes by calling client.followUser(userId).follow_user: { schema: userIdSchema, execute: async ({ userId }, client) => client.followUser(userId), },
- src/tools/definitions.ts:464-477 (schema)The MCP tool schema definition for 'follow_user', including input schema for userId.{ name: 'follow_user', description: '指定されたユーザーをフォローします', inputSchema: { type: 'object', properties: { userId: { type: 'string', description: 'ユーザーID', }, }, required: ['userId'], }, },
- src/qiitaApiClient.ts:194-198 (helper)The Qiita API client method that performs the actual HTTP PUT request to follow a user.async followUser(userId: string) { this.assertAuthenticated(); await this.client.put(`/users/${userId}/following`); return { success: true }; }