lookup_color
Look up LDraw colors by code or name to get RGB values, edge color, alpha, and finish for each match.
Instructions
Look up LDraw colours in the library's LDConfig.ldr.
query is a colour code (4, or a direct colour 0x2FF8800) or part of a
name (dark blue, Trans_Red). Returns code, name, RGB, edge colour, alpha
and finish for each match; an unknown code returns no matches.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "lookup_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||