Create a PostToolUseFailureHookInput
Usage
PostToolUseFailureHookInput(
session_id,
transcript_path,
cwd,
tool_name,
tool_input,
tool_use_id,
error,
is_interrupt = NULL,
permission_mode = NULL,
agent_id = NULL,
agent_type = NULL
)Examples
h <- PostToolUseFailureHookInput(
session_id = "s1", transcript_path = "/tmp/t.jsonl", cwd = "/tmp",
tool_name = "Write", tool_input = list(path = "/x"), tool_use_id = "t1",
error = "Permission denied"
)
h$error
#> [1] "Permission denied"