Skip to main content
Glama

get_fill_light_color

Retrieve the current fill light color as a hex code for 3D scenes. Use this to verify colors before making adjustments in Hello3DMCP Server's visualization environment.

Instructions

Get the current fill light color as a hex color code (e.g., "#ffffff"). Query this before relative color changes to ensure accuracy. For absolute changes, you may use recently queried state from context if no manual interactions occurred.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The get_fill_light_color tool handler that retrieves the current fill light color from the 3D scene state. It gets the session ID, queries state from the browser, extracts the fill light color, and returns a formatted response with metadata about the query source and timestamp.
    mcpServer.registerTool( 'get_fill_light_color', { title: 'Get Fill Light Color', description: 'Get the current fill light color as a hex color code (e.g., "#ffffff"). ' + 'Query this before relative color changes 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 color = state.fillLight?.color || '#ffffff'; return { content: [ { type: 'text', text: formatStateResponse(color, 'Fill light color', sessionId, metadata) } ] }; } catch (error) { return { content: [ { type: 'text', text: `Error retrieving fill light color: ${error.message}` } ], isError: true }; } } );
  • server.js:1454-1461 (registration)
    Registration of the get_fill_light_color tool with its title, description, and empty input schema (no parameters required).
    mcpServer.registerTool( 'get_fill_light_color', { title: 'Get Fill Light Color', description: 'Get the current fill light color as a hex color code (e.g., "#ffffff"). ' + 'Query this before relative color changes to ensure accuracy. ' + 'For absolute changes, you may use recently queried state from context if no manual interactions occurred.', inputSchema: {}

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aidenlab/hello3dmcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server