get_fill_light_intensity
Retrieve the current fill light intensity value to accurately adjust lighting in 3D scenes. Use this tool before making relative intensity changes to ensure precise control over scene illumination.
Instructions
Get the current fill light intensity value (0.0 or higher). Query this before relative intensity changes (e.g., "increase by 0.5") to ensure accuracy. For absolute changes, you may use recently queried state from context if no manual interactions occurred.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.js:1405-1452 (handler)The get_fill_light_intensity tool handler that retrieves the current fill light intensity from the browser state. It uses getCurrentSessionId() to get the session, queries state via getState(), extracts the intensity value, and returns it with metadata via formatStateResponse().mcpServer.registerTool( 'get_fill_light_intensity', { title: 'Get Fill Light Intensity', description: 'Get the current fill light intensity value (0.0 or higher). ' + 'Query this before relative intensity changes (e.g., "increase by 0.5") to ensure accuracy. ' + 'For absolute changes, you may use recently queried state from context if no manual interactions occurred.', inputSchema: {} }, async () => { const sessionId = getCurrentSessionId(); if (!sessionId) { return { content: [ { type: 'text', text: 'Error: No active session found.' } ], isError: true }; } try { const { state, metadata } = await getState(sessionId); const intensity = state.fillLight?.intensity ?? 0; return { content: [ { type: 'text', text: formatStateResponse(intensity.toString(), 'Fill light intensity', sessionId, metadata) } ] }; } catch (error) { return { content: [ { type: 'text', text: `Error retrieving fill light intensity: ${error.message}` } ], isError: true }; } } );