macro_run
Executes Creo mapkey macro scripts to run UI commands like view refit, enabling automation when direct API commands are unavailable.
Instructions
Run a Creo mapkey macro (UI command script). Can reach any Creo command but depends on the UI.
Example (refit the view): "~ Command ProCmdViewRefit;"
Lines start with "~"; do not include the "mapkey xx" header or "mapkey(continued)" prefixes.
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": {
"script": "<script>"
},
"name": "macro_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| delay_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||