Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/protocol/v2/draft/prompt-lifecycle.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ Once permission is granted (if required), the Agent **SHOULD** invoke the tool a
```

As the tool runs, the Agent **MAY** send additional updates, providing
real-time feedback about tool execution progress. The Agent streams complete
real-time feedback about tool execution progress. The Agent streams
incremental content items with `tool_call_content_chunk`:

```json
Expand Down
5 changes: 5 additions & 0 deletions docs/protocol/v2/draft/tool-calls.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ chunks. Later chunks append to that replacement content. A `tool_call_update`
with `content: []` or `content: null` clears the tool-call content. A
`tool_call_content_chunk`'s `_meta`, when present, is chunk-scoped.

An Agent can stream a tool's text output the way it streams message text, by
sending each piece as a text content item in its own
`tool_call_content_chunk`. Clients can present adjacent text items as one
continuous text.

## Requesting Permission

Permission requests do not by themselves change the session's foreground state. While foreground work is blocked on a permission response, the Agent **SHOULD** report `requires_action`. Once reported, it **MUST** report `running` when foreground progress resumes, or `idle` if the work ends without resuming. Requests for independent background activity may arrive while the session remains `idle`. See [Waiting for User Action](/protocol/v2/draft/prompt-lifecycle#waiting-for-user-action) for concurrent requests and late answers.
Expand Down
2 changes: 1 addition & 1 deletion docs/protocol/v2/prompt-lifecycle.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ Once permission is granted (if required), the Agent **SHOULD** invoke the tool a
```

As the tool runs, the Agent **MAY** send additional updates, providing
real-time feedback about tool execution progress. The Agent streams complete
real-time feedback about tool execution progress. The Agent streams
incremental content items with `tool_call_content_chunk`:

```json
Expand Down
5 changes: 5 additions & 0 deletions docs/protocol/v2/tool-calls.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,11 @@ chunks. Later chunks append to that replacement content. A `tool_call_update`
with `content: []` or `content: null` clears the tool-call content. A
`tool_call_content_chunk`'s `_meta`, when present, is chunk-scoped.

An Agent can stream a tool's text output the way it streams message text, by
sending each piece as a text content item in its own
`tool_call_content_chunk`. Clients can present adjacent text items as one
continuous text.

## Requesting Permission

Permission requests do not by themselves change the session's foreground state. While foreground work is blocked on a permission response, the Agent **SHOULD** report `requires_action`. Once reported, it **MUST** report `running` when foreground progress resumes, or `idle` if the work ends without resuming. Requests for independent background activity may arrive while the session remains `idle`. See [Waiting for User Action](/protocol/v2/prompt-lifecycle#waiting-for-user-action) for concurrent requests and late answers.
Expand Down
Loading