List workspace variables
cm_list_workspace_varsList variables with their names, classes, and sizes from the MATLAB base workspace or a Simulink model workspace, optionally filtered by wildcard pattern.
Instructions
Variables (name, class, size) of the MATLAB base workspace or of a Simulink model's workspace. Controller parameters usually live in the model workspace.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cm_list_workspace_vars"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | 'base' for the MATLAB base workspace, or the name of a loaded Simulink model for that model's workspace | base |
| pattern | No | Wildcard filter on the name, e.g. 'Kp_*' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||