getScene
Retrieve specific 3D scenes from Spline design tool using scene IDs to access and work with existing 3D designs and animations.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sceneId | Yes | Scene ID |
Implementation Reference
- src/tools/scene-tools.js:12-39 (handler)MCP tool registration and handler implementation for 'getScene'. Defines input schema (sceneId: string), fetches scene details using apiClient.getScene(sceneId), formats as JSON text content, handles errors.'getScene', { sceneId: z.string().min(1).describe('Scene ID'), }, async ({ sceneId }) => { try { const scene = await apiClient.getScene(sceneId); return { content: [ { type: 'text', text: JSON.stringify(scene, null, 2) } ] }; } catch (error) { return { content: [ { type: 'text', text: `Error retrieving scene: ${error.message}` } ], isError: true }; } } );
- src/utils/api-client.js:54-56 (helper)Supporting API client method getScene(sceneId) that performs GET request to Spline API /scenes/{sceneId} endpoint to retrieve scene data.async getScene(sceneId) { return this.request('GET', `/scenes/${sceneId}`); }
- src/index.js:92-92 (registration)Top-level registration call: registerSceneTools(server) which includes registering the getScene tool.registerSceneTools(server);