Read a project data file
cm_readReads CarMaker infofile key/value pairs 300 at a time, with key, prefix, or search filters and offset paging for targeted project data.
Instructions
Key / value pairs of a CarMaker infofile, 300 at a time: filter by keys, prefix or search, or page
with offset. For a test run first driver (its template or 'TestRun', knowledge, main limits) and,
also for a vehicle, standalone: false names the vehicle's Simulink parts (runs need the MATLAB
session).
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": {
"kind": "<kind>",
"name": "<name>"
},
"name": "cm_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | Only these keys | |
| kind | Yes | Kind of project data; selects the folder below <project>/Data | |
| name | Yes | File name relative to the kind's folder, as cm_list returns it | |
| offset | No | Skip this many keys (paging: next_offset) | |
| prefix | No | Only keys starting with this, e.g. 'Vehicle' or 'DrivMan.' | |
| search | No | Only keys containing this, any case, e.g. 'Control.Kind' |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||