Expand Gerbil Macro
gerbil_expand_macroExpand Gerbil Scheme macros to show core-expanded forms using syntax->datum, revealing how expressions transform during compilation.
Instructions
Show the macro expansion of a Gerbil Scheme expression. Returns the core-expanded form using syntax->datum. Example: "(when #t (displayln "hi"))" expands to a %#if form.
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": {
"expression": "<expression>"
},
"name": "gerbil_expand_macro"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | The Gerbil expression to expand | |
| imports | No | Modules to import for macro definitions |