new_session
Create a new ACP session on an initialized agent. Provide agent ID, working directory, and optional MCP servers or permission policy to get a session ID back.
Instructions
Create a new ACP session on an initialized agent. Returns the agent's session ID.
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": {
"agentId": "<agentId>",
"cwd": "<cwd>"
},
"name": "new_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | ID of the initialized agent | |
| cwd | Yes | Working directory for the session | |
| mcpServers | No | MCP servers to make available to the agent | |
| permissionPolicy | No | Permission policy: elicit, allow_all, deny_all, or operator |