models:read and models:run, and a positive workspace wallet.
Read limits
maxOutputTokens within the returned limits.
Submit a conversation
Save this structure asmodel-request.json, replacing provider/model-id with
your selected catalog ID:
client.models.createRun with the same payload plus
idempotencyKey. Use client.models.getRun(id) to read it.
Function calling
Model requests accept function definitions intools, with optional
tool_choice and parallel_tool_calls. When the model returns tool calls:
- Preserve the returned assistant
message, including tool calls and reasoning details when present. - Execute only the tool bindings you authorized.
- Append one
role: "tool"result with the matchingtool_call_idper call. - Send the next model turn with the same function definitions and a new persisted operation key.
agent command provides a separate model-directed MCP workflow.