vrchat_send_friend_request
Send a friend request to a VRChat user by specifying their userId, enabling connection and interaction within the VRChat platform through the MCP Server.
Instructions
Send a friend request to another user.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | Yes |
Implementation Reference
- src/tools/friends.ts:14-32 (handler)Handler function that authenticates the VRChat client and sends a friend request to the specified user ID, returning the response or error.async (params) => { try { await vrchatClient.auth() const response = await vrchatClient.friendsApi.friend(params.userId) return { content: [{ type: 'text', text: JSON.stringify(response.data, null, 2) }] } } catch (error) { return { content: [{ type: 'text', text: 'Failed to send friend request: ' + error }] } } }
- src/tools/friends.ts:11-13 (schema)Input schema defining 'userId' as a non-empty string.{ userId: z.string().min(1), },
- src/tools/friends.ts:7-33 (registration)Registration of the 'vrchat_send_friend_request' tool with the MCP server, including name, description, schema, and handler.// Name 'vrchat_send_friend_request', // Description 'Send a friend request to another user.', { userId: z.string().min(1), }, async (params) => { try { await vrchatClient.auth() const response = await vrchatClient.friendsApi.friend(params.userId) return { content: [{ type: 'text', text: JSON.stringify(response.data, null, 2) }] } } catch (error) { return { content: [{ type: 'text', text: 'Failed to send friend request: ' + error }] } } } )