When a run pauses at an approval-gated tool, it surfaces a checkpoint (the
checkpoint field of the llmragent_pending_approval condition, or the
object returned by human_gate() in batch mode). Inspect
checkpoint$pending (the tool name, arguments, and an argument hash), then
record a decision with this function and continue with resume_run().
Usage
approve_tool_call(
checkpoint,
decision = c("approve", "reject", "edit"),
edit = NULL
)