Show an interactive 3D view (MCP App)
view_3dDisplay an interactive three.js 3D viewer to rotate, zoom, and click shapes (knot, sphere, gear, GLB sample), set the camera, highlight parts, and return user selections as context.
Instructions
Show an interactive 3D viewer (MCP App, three.js) the user can rotate, zoom and click. Shapes: knot, sphere, gear, glb-sample (glb-sample is a small glTF model read from test://models/sample.glb). Optionally set the camera and highlight one part. When the user selects a part it reaches you as model context or a chat message; view_3d_state reads the latest selection.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "view_3d"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shape | No | What to show (default knot) | |
| camera | No | Initial camera; coordinates in [-100, 100]. Default position [5, 3.5, 6], target [0, 1.2, 0] | |
| highlight | No | Name of a part to highlight (see parts in the result) |