set_parameter
Sets a parameter value on a Revit element, automatically converting the input to the correct type (string, integer, double, or element ID). Returns the old and new values for confirmation.
Instructions
Set a single parameter value on a Revit element.
Automatically detects the parameter's storage type (String, Integer, Double, ElementId) and converts the value accordingly. Returns old and new values for confirmation.
Args: element_id: Target element ID parameter_name: Name of the parameter to set (e.g., "Comments", "Mark") value: New value as a string — automatically converted to the correct type ctx: MCP context for logging
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| element_id | Yes | ||
| parameter_name | Yes | ||
| value | Yes |