Dolly Camera In
dolly_camera_inMove the camera closer to the subject in a 3D scene. Optionally specify the amount to control the dolly-in distance.
Instructions
Move the camera closer to the subject (dolly in)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Optional amount to move closer (defaults to configured dolly speed) |
Implementation Reference
- server.js:1580-1604 (registration)Registration of the 'dolly_camera_in' MCP tool via mcpServer.registerTool(), including its input schema (optional positive number 'amount') and handler function.
mcpServer.registerTool( 'dolly_camera_in', { title: 'Dolly Camera In', description: 'Move the camera closer to the subject (dolly in)', inputSchema: { amount: z.number().positive().optional().describe('Optional amount to move closer (defaults to configured dolly speed)') } }, async ({ amount }) => { routeToCurrentSession({ type: 'dollyCameraIn', amount: amount }); return { content: [ { type: 'text', text: amount ? `Camera moved ${amount} units closer` : 'Camera moved closer' } ] }; } ); - server.js:1589-1603 (handler)The handler function for 'dolly_camera_in'. It sends a 'dollyCameraIn' command to the browser session via routeToCurrentSession() with an optional amount parameter, and returns a text response indicating the camera moved closer.
async ({ amount }) => { routeToCurrentSession({ type: 'dollyCameraIn', amount: amount }); return { content: [ { type: 'text', text: amount ? `Camera moved ${amount} units closer` : 'Camera moved closer' } ] }; }