project_remove_document
Remove a document from a project while keeping its parts; the project excludes it so sync will not re-add it, and adding the part again restores it.
Instructions
Remove a document from the parts of the user project; the parts stay. The project remembers it (exclude), so that project_sync does not add it again; project_add_part with this document adds it again. It also accepts a document that the project file does not name yet, but that project_sync would add (a "new reference" of project_status): use it to stop the sync of a document that the store links to a part. The copy is deleted when no part uses it; a pinned file stays. The central store does not change.
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": {
"document": "<document>"
},
"name": "project_remove_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mpn | No | Only from this part. Empty: from each part that has it. | |
| 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. | |
| document | Yes | The document: its reference, a SHA-256 prefix, its document ID, or its file name in the project folder. | |
| 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 |