altium_set_parameter
Set schematic component parameters like MPN with preview-first safety: preview changes by default, apply to memory with undo, and require read_write mode.
Instructions
Set schematic component parameters (e.g. MPN). apply=false (default) only previews and never touches Altium; apply=true writes. Edits stay in memory: the document is left modified but NOT saved, and Ctrl+Z in Altium undoes them. Requires the server to be in read_write mode. One undo step per affected sheet. Reserved parameters (Designator, LibReference, Comment, footprint/model links) are refused. Missing parameters are only created with create_if_missing=true. Components on sheets that are not open in Altium are refused. 1 to 50 changes per call; the result includes a read-back verification when applied. The PCB is not updated until the user runs Update PCB.
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": {
"changes": "<changes>"
},
"name": "altium_set_parameter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | ||
| changes | Yes | ||
| create_if_missing | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||