invoke
Calls LabVIEW VI Server methods on objects or the application, maps named arguments and types, and chains follow-up calls to return outputs for VI automation.
Instructions
Call any VI Server method of an object and save its VI: invoke("a.vi%GObject|F1", "Add Input"),
("a.vi%Control|Chart", "Reinitialize to Default"). args maps input names to values
({"Name": "x"}); their types are guessed like set_prop or given in types ({"Name": "string"}).
cls="App" calls LabVIEW application methods (target: any VI). then calls more methods, each on the
previous one's return value ("on": "same": on the same object as the previous call):
[{"method": "Save:Library", "args": {...}, "types": {...}, "on": "same"}]. Returns every output
of the last call. List the methods with methods(cls).
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>",
"method": "<method>"
},
"name": "invoke"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cls | No | auto | |
| args | No | ||
| then | No | ||
| types | No | ||
| method | Yes | ||
| target | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |