scpi_query
Send a raw SCPI query ending in '?' to a UNI-T UTS spectrum analyzer and return its reply; use block mode for IEEE 488.2 binary block responses.
Instructions
Send one raw SCPI query (it must end in '?') to the analyzer and return the reply. Escape hatch for commands without a dedicated tool. Use reply='block' for IEEE 488.2 '#' binary block replies (returned as base64). Unsupported queries get no reply from the instrument and time out.
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": {
"command": "<command>"
},
"name": "scpi_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reply | No | Reply type: 'text' (default) or 'block' for a binary block | |
| command | Yes | SCPI query, e.g. '*IDN?' or ':SWEep:POINts?' | |
| instrument | No | Which instrument to use (a name from list_instruments). Default: the `default` instrument, or the only one configured | |
| timeout_ms | No | Timeout in milliseconds (default 5000 for text, 30000 for blocks) |