rex_action_do
Runs a named Rex action or Lua script with optional block, session, or client context, enforcing writable-session and allowlist permissions.
Instructions
Perform an action (rex do NAME --args JSON) or run Lua (script). Block actions need a writable session; init.lua actions and scripts need allowLua; client actions need allowClientActions.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "rex_action_do"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| name | No | ||
| block | No | Block label, ID, or ID suffix | |
| client | No | ||
| script | No | Lua source to run | |
| session | No | Session label or ID |