set_prop
Write any VI Server property of a LabVIEW object and save its VI. Set nested sub-properties, colors, arrays, or label text by target, property name, and value.
Instructions
Write any VI Server property of an object and save its VI: set_prop("a.vi%Control|N", "Visible", "false"),
("a.vi%Control|N", "Label.Text", "Speed"), ("a.vi%Control|Mode", "Strings[]", "[Off, On]"),
("a.vi%Control|N", "Position:Left", "40"). prop is a property name (sub-properties with :), optionally
followed by . and a property of the object it returns. type is guessed (bool, DBL, string, DBL[], string[])
unless given (I32, U32 for colors, ...). cls picks the class (Control, Numeric, Enum, Ring, String,
Boolean, Array, Cluster, GraphChart, GObject, Node, Constant, Structure); auto reads it from the VI.
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": {
"target": "<target>",
"prop": "<prop>",
"value": "<value>"
},
"name": "set_prop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cls | No | auto | |
| prop | Yes | ||
| type | No | auto | |
| value | Yes | ||
| target | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |