project_remove_part
Remove a part from a user project and delete copied files no other part uses, while leaving the central store unchanged; pinned files remain by default.
Instructions
Remove a part from the user project, and delete its copies that no other part uses. A pinned file stays (see project_update_part), unless delete_pinned is true. The central store does not change, because other projects can use the part. To change the MPN of a part, use project_update_part. Gives the removed part and the deleted and kept files.
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>"
},
"name": "project_remove_part"
}
}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. | |
| 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. With a datasheet, the tool reads the manufacturer from it: a given name must be a name of the same manufacturer. | |
| delete_pinned | No | True: also delete a pinned file (pinned = true: a file outside the subfolder of the layout of its part, or a file that project_update_part pinned). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |