From e43c2ec0b913163d8a1bcf2c07a28bc63eade68c Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Fri, 20 Nov 2026 20:23:39 -0500 Subject: [PATCH] docs(api): describe when a tool event's content is inline Descriptions are left out of the API digest, so the schema can state the rule that docs/http-streams.md gives. --- cli/internal/daemon/protocol/api.gen.go | 8 +++++--- docs/openapi.yaml | 5 +++++ web/src/lib/api.gen.d.ts | 1 + 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/cli/internal/daemon/protocol/api.gen.go b/cli/internal/daemon/protocol/api.gen.go index 485a81723..62e77dc74 100644 --- a/cli/internal/daemon/protocol/api.gen.go +++ b/cli/internal/daemon/protocol/api.gen.go @@ -3827,9 +3827,11 @@ type SessionThinkingEvent struct { type SessionToolEvent struct { Data struct { // Arguments Explicit domain payload: tool arguments, tool results, provider-private state, or extension data. JSON values of any type are allowed; no core resource uses this as its envelope. - Arguments DynamicJSON `json:"arguments"` - ContentComplete bool `json:"content_complete"` - Name string `json:"name"` + Arguments DynamicJSON `json:"arguments"` + + // ContentComplete False when the arguments exceed 64 KiB or the encoded arguments, result and trace exceed 64 KiB plus the trace's snapshots (counted up to 256 KiB). Arguments, result and trace are then null; read the call from history through reference. + ContentComplete bool `json:"content_complete"` + Name string `json:"name"` // ProgressCallID Opaque identity. Never infer a resource type or route from its contents. ProgressCallID ID `json:"progress_call_id"` diff --git a/docs/openapi.yaml b/docs/openapi.yaml index 127f85b62..3ca886165 100644 --- a/docs/openapi.yaml +++ b/docs/openapi.yaml @@ -18110,6 +18110,11 @@ components: - type: 'null' content_complete: type: boolean + description: >- + False when the arguments exceed 64 KiB or the encoded arguments, + result and trace exceed 64 KiB plus the trace's snapshots + (counted up to 256 KiB). Arguments, result and trace are then + null; read the call from history through reference. reference: anyOf: - $ref: '#/components/schemas/ContentReference' diff --git a/web/src/lib/api.gen.d.ts b/web/src/lib/api.gen.d.ts index 94a3d1734..754747f46 100644 --- a/web/src/lib/api.gen.d.ts +++ b/web/src/lib/api.gen.d.ts @@ -5825,6 +5825,7 @@ export interface components { arguments: components["schemas"]["DynamicJSON"]; result: components["schemas"]["DynamicJSON"]; trace: components["schemas"]["ToolTrace"] | null; + /** @description False when the arguments exceed 64 KiB or the encoded arguments, result and trace exceed 64 KiB plus the trace's snapshots (counted up to 256 KiB). Arguments, result and trace are then null; read the call from history through reference. */ content_complete: boolean; reference: components["schemas"]["ContentReference"] | null; /** -- knotmirror 0.0.1