ldraw_lookup_part
Search LEGO LDraw parts by keyword, colour, or category to find matching pieces in a configured set catalog or the local LDraw library for model building.
Instructions
Search LEGO parts in the configured set catalog (if LDRAW_CATALOG_PATH is set) or across the entire local LDraw parts library by keyword, colour, or category.
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": "ldraw_lookup_part"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of matching parts to return (default 30) | |
| query | No | Search keyword (e.g. '1x12', '2x4', 'plate', 'gear', 'axle', '3001') | |
| colour | No | Filter by color name or LDraw color code (custom catalog mode) | |
| source | No | Search source: 'auto' prefers custom set catalog if loaded, otherwise full LDraw library | auto |
| category | No | Filter by category (e.g. 'Brick', 'Plate', 'Technic', 'Slope') |