codex_hook
Manage Codex session hooks by adding, removing, or listing hook patterns that trigger on events like user input, tool results, or reasoning.
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": {
"action": "<action>"
},
"name": "codex_hook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| name | No | ||
| level | No | ||
| match | No | ||
| action | Yes | ||
| hookId | No | ||
| notify | No | ||
| pattern | No |