change_model_size
Adjust the uniform scale of a 3D model by specifying a new size value to resize the entire object proportionally.
Instructions
Change the uniform size of the 3D model
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | New size value (uniform scaling) |
Implementation Reference
- server.js:450-475 (registration)Complete tool registration for 'change_model_size' including schema definition and handler function. The tool accepts a positive 'size' parameter for uniform scaling, routes a 'changeSize' command to the browser session, and returns a confirmation message.// Register tool: change_model_size mcpServer.registerTool( 'change_model_size', { title: 'Change Model Size', description: 'Change the uniform size of the 3D model', inputSchema: { size: z.number().positive().describe('New size value (uniform scaling)') } }, async ({ size }) => { routeToCurrentSession({ type: 'changeSize', size: size }); return { content: [ { type: 'text', text: `Model size changed to ${size}` } ] }; } );