macro_create
Creates an IC-CAP macro with optional text, in Python or PEL. Replaces existing macros only when overwrite is explicitly enabled, with automatic pre-overwrite save to avoid data loss.
Instructions
Create a Macro object. Optionally set its text content.
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": {
"macro_path": "<macro_path>"
},
"name": "macro_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Macro text | |
| overwrite | No | Delete and replace an existing Macro only when explicitly enabled | |
| macro_path | Yes | ||
| macro_type | No | Execution language; new IC-CAP macros otherwise default to PEL Program | PythonGlobal |
| allow_without_checkpoint | No | Proceed only if an automatic pre-overwrite save fails; use with care |