Parts
partsSearch Rebrickable LEGO parts by keyword, color_id, or part_cat_id. Returns part number, name, part category, and image URL. Use colors or category list to get valid IDs.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "brick 2x4"
},
"name": "parts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| query | No | ||
| color_id | No | ||
| ordering | No | ||
| page_size | No | ||
| part_cat_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | No | URL to next page of results | |
| count | No | Total number of parts matching criteria | |
| results | No | Array of part objects | |
| previous | No | URL to previous page of results |