Start agent session
start_agent_sessionStart or retry a project-scoped agent session and record its goal. Returns record.id, the session ID for later writes in this session. Does not run an agent or change repository files.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectId": "<projectId>",
"requestText": "<requestText>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "start_agent_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | Owned Brain Scanner project ID from the account's project list; not a local path or repository URL. | |
| sessionId | No | ID of this project's active agent session, returned when the session was started. Not needed for read-only calls. | |
| requestText | Yes | User request or goal to record at the start of this session. | |
| idempotencyKey | Yes | Caller-generated retry key. Reuse the same key and identical payload only to retry the same mutation; use a new key for a new action. | |
| expectedVersion | No | Current version of the target record from its latest read or mutation result. A stale value causes a version conflict; re-read before retrying. |