terse_alias_define
Define a session alias that expands to a reusable Terse form, so repeated subtrees can be written once and referenced with a short $alias.
Instructions
Define a session macro: $alias expands to the given Terse form everywhere it appears as a variable afterwards. Define a repeated subtree once, then write $alias (1-2 tokens) instead of the full form. $names are reserved for aliases — do not bind them with let/def/fn.
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": {
"alias": "<alias>",
"expansion": "<expansion>"
},
"name": "terse_alias_define"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | Yes | Alias name, e.g. $1. | |
| expansion | Yes | Terse source the alias expands to. |