project_remove_source
Removes a purchase source number from a project part when that number is wrong or not ordered, with optional removal from the central store and team server.
Instructions
Remove a purchase source ([[part.source]]) from a part of the user project: a number that the project does not order (a different packaging) or a wrong number (project_check gives "one of them is wrong", project_availability gives "is X, not Y"). A part can have more numbers of one source; adopt_part adds one and does not replace the others. Do it only when the user agrees. The CAD BOM is the master: the LCSC field of the symbol must give a number that the part keeps (write it with kicad-workbench set_symbol_fields), then project_check.
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": {
"mpn": "<mpn>",
"number": "<number>"
},
"name": "project_remove_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mpn | Yes | The MPN of the project part. | |
| path | No | A folder of the user project (default: the working folder of the server). The project file datasheet-lens.toml is in it or in a parent folder. | |
| store | No | True: also remove it from the central store and the team server, for a number that is wrong for the part (for example a C number of a different MPN). False: only from the project file; the store keeps where the part is available. | |
| number | Yes | The part number of the purchase source to remove: a DigiKey number, a JLCPCB C number or a Mouser number, as project_status and project_availability give it. | |
| source | No | digikey, jlcpcb or mouser: only when more sources of the part have the number. Empty: the source that has it. | |
| dry_run | No | True: change nothing, only tell what would change. | |
| manufacturer | No | The manufacturer, any of its names (TI or Texas Instruments: the store knows the names of one manufacturer). Necessary only when two parts have the same MPN. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |