Skip to main content
Glama

increase_camera_fov

Widen the camera's field of view to see more of the 3D scene at once, expanding the visible area for better scene overview and navigation.

Instructions

Increase the camera field of view (wider angle, see more of the scene)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountNoOptional amount to increase (defaults to configured FOV speed)

Implementation Reference

  • server.js:1658-1682 (registration)
    Tool registration for 'increase_camera_fov' - defines the tool's metadata (title, description), input schema (optional amount parameter), and the complete handler function that executes when the tool is called. The handler routes a command to the current browser session with type 'increaseCameraFOV' and returns a success message.
    mcpServer.registerTool( 'increase_camera_fov', { title: 'Increase Camera Field of View', description: 'Increase the camera field of view (wider angle, see more of the scene)', inputSchema: { amount: z.number().positive().optional().describe('Optional amount to increase (defaults to configured FOV speed)') } }, async ({ amount }) => { routeToCurrentSession({ type: 'increaseCameraFOV', amount: amount }); return { content: [ { type: 'text', text: amount ? `Camera FOV increased by ${amount}` : 'Camera FOV increased (wider angle)' } ] }; } );
  • The actual handler function for 'increase_camera_fov' (lines 1667-1682) that executes when the tool is invoked. It accepts an optional 'amount' parameter, routes the command to the current session via routeToCurrentSession(), and returns a formatted response indicating the FOV was increased.
    mcpServer.registerTool( 'increase_camera_fov', { title: 'Increase Camera Field of View', description: 'Increase the camera field of view (wider angle, see more of the scene)', inputSchema: { amount: z.number().positive().optional().describe('Optional amount to increase (defaults to configured FOV speed)') } }, async ({ amount }) => { routeToCurrentSession({ type: 'increaseCameraFOV', amount: amount }); return { content: [ { type: 'text', text: amount ? `Camera FOV increased by ${amount}` : 'Camera FOV increased (wider angle)' } ] }; } );
  • Helper function 'routeToCurrentSession' used by the increase_camera_fov handler to send commands to the appropriate browser WebSocket client. It retrieves the current session ID from AsyncLocalStorage context and forwards the command.
    function routeToCurrentSession(command) { const sessionId = sessionContext.getStore(); if (sessionId) { console.error(`Routing command to session: ${sessionId}`, command.type); sendToSession(sessionId, command); } else if (isStdioMode) { // In STDIO mode, route to the unique STDIO session ID if (STDIO_SESSION_ID) { console.error(`Routing command in STDIO mode to session: ${STDIO_SESSION_ID}`, command.type); sendToSession(STDIO_SESSION_ID, command); } else { console.error('Routing command in STDIO mode - no session ID available, broadcasting to all clients:', command.type); if (wsClients.size > 0) { broadcastToClients(command); } else { console.error('No WebSocket clients connected. Command not routed:', command.type); } } } else { console.warn('Tool handler called but no session context available. Command not routed.'); console.warn('Current request session ID:', sessionId); } }

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/aidenlab/hello3dmcp-server'

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