Skip to main content
Glama

vrchat_select_avatar

Switch to a specific avatar in VRChat by entering its unique ID. This tool simplifies avatar selection through the VRChat MCP Server for streamlined user interactions.

Instructions

Select and switch to a specific avatar by its ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
avatarIdYesThe ID of the avatar to select

Implementation Reference

  • Handler function that authenticates with VRChat, selects the avatar by ID using the VRChatClient API, and returns the response as JSON or an error message.
    async (params) => { try { await vrchatClient.auth() const response = await vrchatClient.avatarApi.selectAvatar(params.avatarId) return { content: [{ type: 'text', text: JSON.stringify(response.data, null, 2) }] } } catch (error) { return { content: [{ type: 'text', text: 'Failed to select avatar: ' + error }] } } }
  • Input schema defining the 'avatarId' parameter as a string using Zod.
    { avatarId: z.string().describe('The ID of the avatar to select'), },
  • Tool registration call using McpServer.tool() with name 'vrchat_select_avatar', description, input schema, and handler function.
    server.tool( // Name 'vrchat_select_avatar', // Description 'Select and switch to a specific avatar by its ID.', { avatarId: z.string().describe('The ID of the avatar to select'), }, async (params) => { try { await vrchatClient.auth() const response = await vrchatClient.avatarApi.selectAvatar(params.avatarId) return { content: [{ type: 'text', text: JSON.stringify(response.data, null, 2) }] } } catch (error) { return { content: [{ type: 'text', text: 'Failed to select avatar: ' + error }] } } } )

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sawa-zen/vrchat-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server