diff --git a/src/assets/images/agents/pi-tool-park-runs.svg b/src/assets/images/agents/pi-tool-park-runs.svg
new file mode 100644
index 00000000000..612142f6be0
--- /dev/null
+++ b/src/assets/images/agents/pi-tool-park-runs.svg
@@ -0,0 +1,18 @@
+
\ No newline at end of file
diff --git a/src/assets/images/agents/pi-tool-park.svg b/src/assets/images/agents/pi-tool-park.svg
new file mode 100644
index 00000000000..7a5161dc509
--- /dev/null
+++ b/src/assets/images/agents/pi-tool-park.svg
@@ -0,0 +1,18 @@
+
\ No newline at end of file
diff --git a/src/content/changelog/agents/2026-11-20-pi-harness-pi-1-6.mdx b/src/content/changelog/agents/2026-11-20-pi-harness-pi-1-6.mdx
index 6bb3038b6f9..3664e2eb85c 100644
--- a/src/content/changelog/agents/2026-11-20-pi-harness-pi-1-6.mdx
+++ b/src/content/changelog/agents/2026-11-20-pi-harness-pi-1-6.mdx
@@ -12,7 +12,7 @@ Agents SDK v0.34.0 upgrades [`PiHarness`](/agents/harnesses/pi/) to [Pi 1.6](htt
## Tools that wait
-- **Park until a signal or a deadline.** A tool can return a park instead of a result, and Pi runs it again when a signal arrives or the deadline passes. While it waits, the call holds no invocation, so the Durable Object can hibernate. Deliver signals with the new `harness.signal()`. Refer to [Tools that wait](/agents/harnesses/pi/#tools-that-wait).
+- **Park until a signal or a deadline.** A tool can return a "tool park" (Pi's `ToolPark` type) instead of a result. The tool park registers what the call waits for, and Pi runs it again when a signal arrives or the deadline passes. While it waits, the call holds no invocation, so the Durable Object can hibernate. Deliver signals with the new `harness.signal()`. Refer to [Tools that wait](/agents/harnesses/pi/#tools-that-wait).
- **Wait for a subagent.** `submit()` and `continue()` take `notify`, so a parked tool wakes when another session's input settles. Refer to [Wait for a subagent](/agents/harnesses/pi/#wait-for-a-subagent).
- **Approval gates.** A `beforeTool` hook can park a tool call before it runs, for example until a person approves it.
@@ -24,7 +24,9 @@ Agents SDK v0.34.0 upgrades [`PiHarness`](/agents/harnesses/pi/) to [Pi 1.6](htt
## Wait for a person's answer
-This tool asks the user a question, then parks until your agent delivers the answer:
+This tool asks the user a question, then parks until your agent delivers the answer. Each time it runs, it checks for the answer first, so the question is shown once:
+
+
diff --git a/src/content/docs/agents/harnesses/pi/index.mdx b/src/content/docs/agents/harnesses/pi/index.mdx
index fc480134756..3f0626c5f1d 100644
--- a/src/content/docs/agents/harnesses/pi/index.mdx
+++ b/src/content/docs/agents/harnesses/pi/index.mdx
@@ -427,7 +427,21 @@ For anything `PiHarness` does not cover, `await harness.pi()` returns the opened
## Tools that wait
-A Pi tool can park instead of returning a result: it returns `{ sleep: { signals, until } }`, and Pi runs it again when one of the signals arrives or the deadline passes. While the call waits, it holds no invocation, so the Durable Object can hibernate or be evicted. Deliver a signal with `harness.signal()`, for example from the request that carries a person's answer:
+A tool call usually ends when its `execute()` returns a result. A Pi tool can instead return a "tool park" (Pi's `ToolPark` type), which says what the call is waiting for: a signal, a deadline, or both. Returning a tool park registers the wait. Pi stores it with the call, and when the signal arrives or the deadline passes, Pi runs `execute()` again with the same arguments.
+
+Think of a tool park as an `await` that survives hibernation. A call cannot keep a promise open while the Durable Object sleeps, so it tells Pi what it is waiting for, and Pi keeps that in storage instead of in memory. While the call is parked, it holds no invocation, so the Durable Object can hibernate or be evicted. Your agent delivers a signal with `harness.signal()`, for example from the request that carries a person's answer.
+
+
+
+Because Pi runs the whole of `execute()` again after a wake, a tool that waits for a person's answer does three things each time it runs, in this order:
+
+1. Check for the answer with `api.readSignal()`. On the first run there is none. After the wake, the answer is there, and the tool returns it as its result.
+2. If there is no answer yet, show the question. Send `api.taskId` with it: your agent needs the task id later to deliver the answer.
+3. Return a tool park that names the signal key to wait for.
+
+
+
+The whole example, with the signal it waits on and the call your agent makes later:
```ts
import { defineSignal } from "@earendil-works/pi-durable";
@@ -439,23 +453,37 @@ const Answer = defineSignal({
schema: obj({ text: str() }),
});
-// In the tool's execute(args, api, context): park until the answer comes.
+// In the tool's execute(args, api, context):
+// 1. Check for the answer. After the wake, it is there.
const answer = await api.readSignal(Answer, "answer", context);
if (answer !== undefined && "value" in answer) {
return { output: [{ type: "text", text: answer.value.text }] };
}
+// 2. No answer yet: show the question, with the task id to answer it with.
+// showQuestion() is your code, for example a message to the user's client.
await showQuestion(api.taskId, args.question);
+// 3. Park until a value arrives for the "answer" key.
return { sleep: { signals: [Answer.key("answer")] } };
// Later, in your agent, with the task id the question was shown with:
await this.harness.signal(taskId, Answer, "answer", { text: "Yes" });
```
+The signal key (`"answer"` here) ties the three calls together: `readSignal()`, `Answer.key()` in the tool park, and `harness.signal()` must use the same one. A tool park can also set `until`, a time on Pi's clock such as `api.now()` plus two hours, to stop waiting at a deadline. After the deadline, `readSignal()` returns `{ expired: true }` instead of a value, so handle that case before showing the question again.
+
`harness.signal()` returns Pi's result: `delivered`, or `duplicate`, `invalid`, `closed`, or `not_found` when the call did not take the value. It schedules the harness's wake-up job before it hands Pi the value, so if the object dies while the woken call runs, the job's alarm restarts it. Deliver signals through `harness.signal()`, not through `harness.pi()`.
-A tool can also have a `cancel()` function, which Pi runs when a parked call is aborted, for example to cancel the work it was waiting on. A `beforeTool` hook can park a call the same way before the call runs, to hold it for an approval, a rate limit, or a budget. Pi runs the hook again each time it reopens, so keep the hook idempotent.
+A tool park takes one of two shapes: `{ sleep: { signals, until } }` to wait for a signal, a deadline, or both, or `{ wait: { on, policy } }` to wait for tasks the call owns. Either can also carry a `checkpoint`, which the next run of `execute()` reads as `api.checkpoint`.
+
+- **Cancelling:** a tool can have a `cancel()` function, which Pi runs when a parked call is aborted, for example to cancel the work it was waiting on.
+- **Gates:** a `beforeTool` hook can return `{ sleep: { signals, until } }` to park a call before it runs, for example until a person approves it. Pi runs the hook again on every wake and whenever the harness reopens, so keep it idempotent.
+- **Waiting on nested calls:** start them with `api.executeTool(name, args, context, { key, wait: false })`, park with `{ wait: { on: [taskId], policy: "any" } }`, and read `api.wake.ended` after the wake. For the other policies, refer to [Child Tasks](https://github.com/earendil-works/pi/tree/main/packages/durable#child-tasks).
+- **What a parked call shows:** its slot in `pi.live` is `sleeping` or `waiting`. The operation that made the call stays `running` in `pending()`, and `busy()` is `true`.
+- **Invalid parks:** a tool park that breaks a rule ends the call with an `invalid_park` error. Examples are setting both `sleep` and `wait`, a `sleep` with no `signals` and no `until`, a signal key that already woke the call or expired, and a `wait` on a task the call doesn't own.
+
+A tool park is not the `parked` status that `pending()` showed in Agents SDK 0.31.0 and 0.32.0. That status marked a task stopped by Pi's restart limit, and it was removed in 0.33.0.
-While a call is parked, its run is still going: `pending()` lists its operation as `running`, `busy()` is `true`, and Pi's `pi.live` shows the call's slot as `sleeping` or `waiting`. For the rules a parking tool follows, refer to [Tools that park](https://github.com/earendil-works/pi/tree/main/packages/durable#tools-that-park) and [Gates before a tool runs](https://github.com/earendil-works/pi/tree/main/packages/durable#gates-before-a-tool-runs) in the Pi Durable README.
+For the rules a parking tool follows, refer to [Tools that park](https://github.com/earendil-works/pi/tree/main/packages/durable#tools-that-park) and [Gates before a tool runs](https://github.com/earendil-works/pi/tree/main/packages/durable#gates-before-a-tool-runs) in the Pi Durable README.
### Wait for a subagent
@@ -508,7 +536,7 @@ await conversation?.submit(
return { sleep: { signals: [SubmissionSettled.key("answered")] } };
```
-When the child's input settles, Pi delivers the settled record to the call in the same commit, and the tool runs again with it. Because the call owns the child, aborting the parent session stops the child too, and a rerun before the park was stored finds the same child instead of creating another. The `requestId` makes a rerun find the same submission. If the task to notify has ended or does not exist, the input still settles as usual. `session.submit()` and `session.continue()` take the same `notify` option, for a child session that your own code created.
+When the child's input settles, Pi delivers the settled record to the call in the same commit, and the tool runs again with it. Because the call owns the child, aborting the parent session stops the child too, and a rerun before the tool park was stored finds the same child instead of creating another. The `requestId` makes a rerun find the same submission. If the task to notify has ended or does not exist, the input still settles as usual. `session.submit()` and `session.continue()` take the same `notify` option, for a child session that your own code created.
## Recovery