ACP JSON-RPC 2.0 methods that clients send to the gateway
{ "jsonrpc": "2.0", "id": 1, "method": "initialize", "params": { "clientInfo": { "name": "dim-web", "version": "0.1.0" }, "capabilities": { "streaming": true, "tools": true, "approvals": true } } }
{ "jsonrpc": "2.0", "method": "initialized" }
{ "jsonrpc": "2.0", "id": 2, "method": "thread/start", "params": { "agentType": "claude-agent", "name": "Fix login bug", "projectId": "proj_abc123", "metadata": {} } }
{ "jsonrpc": "2.0", "id": 3, "method": "thread/resume", "params": { "threadId": "thread_abc123" } }
{ "jsonrpc": "2.0", "id": 4, "method": "turn/start", "params": { "text": "Fix the failing test in src/auth.ts", "clientTurnId": "turn_local_1" } }
{ "jsonrpc": "2.0", "id": 5, "method": "turn/steer", "params": { "content": "Focus on the error handling, not the UI" } }
{ "jsonrpc": "2.0", "id": 6, "method": "turn/interrupt" }
{ "jsonrpc": "2.0", "id": 7, "method": "item/approve", "params": { "requestId": "req_approval_123", "approved": true } }
{ "jsonrpc": "2.0", "id": 8, "method": "item/answer", "params": { "requestId": "req_input_456", "answers": { "api_key": "sk-..." }, "dismissed": false } }