Skip to main content
PUT
Replace a session's tools

Authorizations

Authorization
string
header
required

A gbr_pat_ access token. Scopes are recorded on the token when it is minted.

Headers

Idempotency-Key
string

Retrying with the same key replays the first answer instead of acting again.

Maximum string length: 255

Body

application/json

What the agent may call. Replaces the session's whole configuration — entries are not merged with what is already there.

tools
object[]

What the agent may reach outside the workspace: your own functions, MCP servers, and which built-ins. Everything inside the workspace — shell, files, git — is always there and is not configured here. An empty array leaves the session with no route to the network at all.

text
object

Shaping the final message: how much it says, and whether it must conform to a JSON Schema.

Response

Replace a session's tool configuration.

object
string
required

Always session.tools. Names the shape, so a value can be identified without knowing which call returned it.

Allowed value: "session.tools"
session_id
string
required

The session this configuration applies to.

tools
object[]

The configuration as sent, in the same vocabulary: one entry per tool, each with a type of mcp or function. Secret values are withheld — see redacted.

text
object | null

Output shaping, or null when none was set. Asked of the model, not enforced.