Parts list
parts_listGenerates a saved build's parts list as CSV and BrickLink XML wanted list for buying or counting parts, with totals, common parts, and optional GoBricks cost estimates.
Instructions
Write the parts list of a saved build.
Use when the user wants to buy or count the parts. Writes <build>/parts.csv (part, name,
colour, LDraw and BrickLink colour ids, quantity, price) and <build>/bricklink.xml, a
BrickLink wanted list ready to upload. Returns a summary: total parts, part/colour lots, the
file paths, the most used parts, and an estimated cost when source is "gobricks". Requires a
build made with build first.
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": {
"name": "<name>"
},
"name": "parts_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The build's name, as given in its plan (see build) | |
| source | No | Part source: 'lego' (official LEGO parts and colours, default) or 'gobricks' (GoBricks moulds, colours and prices) | lego |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |