Skip to content

Commit e114c62

Browse files
committed
docs: clarify direct SDK tool authorization
1 parent 585f095 commit e114c62

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,11 @@ optional metadata.
342342
## Programmatic Tool Calling
343343

344344
High-frequency tool chains can run inside the embedded QuickJS program tool.
345-
This reduces model round trips while preserving the same tool registry,
346-
permissions, limits, and trace path.
345+
This reduces model round trips while preserving the same tool registry, limits,
346+
workspace boundary, artifacts, and result shape. When the model invokes
347+
`program` inside an agent turn, normal permission, confirmation, hook/AHP, and
348+
trace paths apply. When product code calls `session.program(...)` directly, it
349+
is a host control-plane call and should be authorized before invoking the SDK.
347350

348351
```ts
349352
const result = await session.program({

0 commit comments

Comments
 (0)