Agent Design Patterns
How to Pause a LangGraph Agent for Human Approval Before Tool Use
If an agent can call a tool that changes data or runs a consequential decision, you do not need to remove that capability entirely — you just need to pause it first. LangGraph's interrupt() lets a reviewer inspect and approve or reject the pending action before execution reaches the tool node, then resume with Command(resume=...).
Here is how to wire up that review checkpoint, expose the paused action for review, and resume correctly after approval or stop after rejection.

Quick answer
Put a dedicated approval checkpoint immediately before the protected tool node so the reviewer can see what is being decided without executing it. The interrupted node restarts from its beginning when resumed, so any side effect placed before the pause will run again unless it is moved downstream; keep consequential tool work after the checkpoint.
Call interrupt() inside the checkpoint with a plain, JSON-serializable payload describing the proposed action, including the tool name and the arguments the reviewer needs to assess; avoid passing object instances such as tool objects, because they are not JSON-serializable by default. After the graph pauses, surface that pending action in the operator's review UI by inspecting result[__interrupt__] on the default invoke result.
On approval, resume with Command(resume=True) and the same thread_id; on rejection, resume with Command(resume={approved: False}). Because the resume value becomes the return value of interrupt(), your checkpoint must route the approval value to the tool step and the rejection value to a terminal path, not toward the tool.
Step-by-step guide
Prerequisites
Start with a Python LangGraph agent that can reach the tool you want to protect; this guide assumes the graph and tool are already defined, rather than building an agent from scratch. Identify the exact consequential action that needs approval, and make sure the graph can pause immediately before it executes.
Configure the graph with a checkpointer and choose a thread ID you can reuse for the pending run. LangGraph interrupts require checkpointing and a thread ID, and resumption must use the same ID.
Prepare a JSON-serializable description of the proposed action for the reviewer, and decide how your application will represent approval and rejection. Keep tool side effects after the checkpoint, since the interrupted node starts again from its beginning when resumed.
Sources: Interrupts.
Choose the approval checkpoint before the first consequential tool call
Find the tool call that can change data, send a message, or otherwise create a consequence you want a person to review. In your graph, place a dedicated approval checkpoint immediately before the node that executes that tool.
Keep the checkpoint focused on presenting the proposed action and collecting a decision; leave the actual tool operation in the downstream tool node. This separation matters because LangGraph restarts the interrupted node from its beginning when execution resumes, so consequential work placed before the pause could run again.
Trace the graph from the checkpoint: approval should lead to the protected tool, while rejection should have a path that ends without reaching it. You should be able to identify both routes before adding the interrupt itself.
Sources: Interrupts.
Call interrupt() at that checkpoint with a JSON-serializable payload
In the approval checkpoint node, call interrupt() with a plain, JSON-serializable description of the proposed action. Include the tool name and the arguments the reviewer needs to assess; avoid passing objects such as tool instances that cannot be serialized.
from langgraph.types import interrupt
def approval_checkpoint(state):
decision = interrupt({
"tool": state["tool_name"],
"arguments": state["tool_args"],
})
return {"approval": decision}Keep consequential tool work downstream of this checkpoint. The first graph.invoke(...) pauses here, and the default invoke result exposes pending interrupts under result["__interrupt__"]; inspect that value to confirm the action was surfaced.
Sources: Interrupts.
Expose the pending action for review to the human operator
After the graph pauses, make the pending interrupt available in the operator’s review interface. The default invoke() result exposes pending interrupts in result["__interrupt__"], so start by inspecting that field:
pending = result["__interrupt__"]
print(pending)Show the proposed action clearly enough for the operator to compare it with the request and decide whether to approve it. Avoid presenting a generic “Approve?”
prompt without the action details; the review is useful only if the person can see what is awaiting approval. Once the operator has reviewed it, pass their decision to the resume step.
Sources: Interrupts.
Resume with Command(resume=...) using the same thread ID
After the operator approves the pending action, resume the paused graph with Command(resume=...). Use the same thread_id from the initial invocation; LangGraph uses it to continue the saved execution.
from langgraph.types import Command
config = {"configurable": {"thread_id": thread_id}}
result = graph.invoke(Command(resume=True), config=config)The value passed to resume becomes the return value of interrupt() in the checkpoint node. Make sure that your graph’s routing treats this approval value as approval and sends execution to the protected tool; inspect result to confirm the graph continued as expected.
Sources: Interrupts.
Stop the graph if the operator rejects the action
Treat rejection as a distinct decision, not as approval with a note. Resume the paused run with a value your checkpoint recognizes as rejection, using the same thread ID:
result = graph.invoke(
Command(resume={"approved": False}),
config=config,
)Because the resume value becomes the return value of interrupt(), make sure your checkpoint and graph routing handle this rejection value explicitly. Route rejection to the graph’s terminal path, not to the protected tool; otherwise the tool may still run.
Check the returned result and your tool’s execution record to confirm the run stopped without invoking the tool. If it continues, inspect the rejection condition and confirm the resume call used the paused run’s thread ID.
Sources: Interrupts.
Verification
Run two independent checks, each with its own thread ID. For each initial invocation, confirm that execution pauses and that result["__interrupt__"] contains the proposed action for review.
For the approval check, resume that paused run with Command(resume=...) and the same thread ID. Verify that the graph reaches the protected tool and that its expected result appears.
For the rejection check, start another run, inspect its pending action, then resume with the rejection value your graph expects and that run’s thread ID. Verify that execution ends without reaching the protected tool.
If either outcome differs, check the graph’s approval and rejection routes, then confirm each resume call matches its paused run’s thread ID.
Sources: Interrupts.
Troubleshooting
If a side effect happens twice after approval, check what runs before interrupt(). LangGraph restarts the interrupted node from its beginning when resumed, so keep consequential tool work after the checkpoint and make sure the checkpoint itself does not perform that work.
If resumption does not continue the pending run, confirm that Command(resume=...) uses the same thread_id as the invocation that paused. A different thread ID will not resume that saved execution.
If the decision or returned state is unexpected, inspect the value passed to Command(resume=...) and the checkpoint’s handling of it: that value becomes the return value of interrupt(). Then verify that approval routes to the tool and rejection routes to an ending path; check result["__interrupt__"] on the initial invocation to distinguish a paused run from a completed one.
Sources: Interrupts.
Next steps
Use a dedicated checkpoint, a JSON-serializable interrupt payload, the same thread ID for each resume call, and explicit approval-versus-rejection routing. Test each outcome independently rather than assuming the agent knows whether it has been approved or rejected; failure usually traces back to mismatched thread IDs, node restart behavior, or unhandled resume values.