set_parameter
Set a parameter value on a Revit element with transaction support. If the instance lacks the parameter, it writes to the element type, affecting all instances.
Instructions
Set a parameter value on a Revit element. Opens a Transaction, sets the value, commits.
If the instance has no parameter of that name, the element TYPE is tried. A type write changes every placed instance of that type; the response then contains scope='type', instances_affected and a warning. Warn the user before writing type parameters.
Args: element_id: The integer ID of the Revit element. parameter_name: The exact parameter name as shown in get_element_properties. value: The new value. Numeric values are in Revit internal units (feet); prefer writing text parameters or copy the format from old_value.
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": {
"element_id": "<element_id>",
"parameter_name": "<parameter_name>",
"value": "<value>"
},
"name": "set_parameter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| element_id | Yes | ||
| parameter_name | Yes |