list_macro_jump_targets
Parse a macro's lines to list all Go Macro jump targets, their current target line numbers, and total line count. Use it before inserting or deleting lines to build an index-shift table.
Instructions
Parse a macro's lines and return all jump targets (Go Macro N."name".L references).
Reads macro lines via the console command tree and identifies all jump
instructions, their current target line numbers, and the total line count.
Use this before inserting or deleting macro lines to build an index-shift table.
Args:
macro_id: The macro pool ID to inspect.
Returns JSON with:
- macro_id: int
- total_lines: int
- jump_targets: list of {source_line, target_line, raw_command}
- line_listing: ordered list of {line_num, command}
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_id": "<macro_id>"
},
"name": "list_macro_jump_targets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| macro_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |