# Tool name resolution

| Spelling | Target | Condition |
| --- | --- | --- |
| `Bash` | `bash` | Target in the turn's allowed tool list |
| `Read` | `read` | Target in the turn's allowed tool list |
| `ToolSearch` | `tool_search` | Target in the list. `select` accepted for `query`; a null optional `max_results` is omitted. |

| Rule | Effect |
| --- | --- |
| Exact name | Always wins over an alias |
| Resolved call | Uses the target's schema, preflight, gate and executor; invalid arguments still fail validation |
| Unknown or disabled tool | Remains unavailable; an alias cannot reach a missing target |
| Record | Original call name and ID stay in the conversation and event record |

Lives in `openprogram/runtime/agent/loop/` and `openprogram/programs/_host/runtime.py`. Provider request formats and permission policy are unaffected.
