Skip to main content
Glama

jump

Trigger avatar jumps in VRChat using the MCP OSC bridge, enabling AI-driven control for dynamic interactions in virtual reality environments.

Instructions

Make the avatar jump.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'jump' tool. Sends 'Jump' input with value 1.0, waits 100ms, then releases with 0.0 via wsClient. Returns success or error messages.
    public async jump(ctx?: ToolContext): Promise<string> {
      if (ctx) {
        await ctx.info('Jumping');
      }
    
      try {
        // Send jump input
        const success = await this.wsClient.sendInput('Jump', 1.0);
        if (!success) {
          return 'Failed to jump';
        }
    
        // Short delay for button press
        await delay(100);
    
        // Release jump button
        const releaseSuccess = await this.wsClient.sendInput('Jump', 0.0);
        if (!releaseSuccess) {
          return 'Jump initiated but failed to release button';
        }
    
        return 'Jumped';
      } catch (error) {
        const errorMsg = `Error jumping: ${error instanceof Error ? error.message : String(error)}`;
        logger.error(errorMsg);
        return errorMsg;
      }
    }
  • MCP server registration of the 'jump' tool with empty input schema. Creates ToolContext and calls inputTools.jump(ctx), handling errors.
    server.tool(
      'jump',
      'Make the avatar jump.',
      {},
      async (_, extra) => {
        try {
          const ctx = createToolContext(extra);
          const result = await inputTools.jump(ctx);
          return { content: [{ type: 'text', text: result }] };
        } catch (error) {
          return { 
            content: [{ 
              type: 'text', 
              text: `Error jumping: ${error instanceof Error ? error.message : String(error)}` 
            }],
            isError: true
          };
        }
      }
    );
Install Server

Other Tools

Related Tools

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/Krekun/vrchat-mcp-osc'

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