agp_register
Registers or updates an AI session's Agent Card so peers can discover it and route messages, including role, owned paths, capabilities, channels, status, and wakeup mode.
Instructions
Register or update this AI session's Agent Card (display_name, role, owned_paths, capabilities, channels, wakeup_mode, status) so peers can discover and route messages to it.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "agp_register"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Current workspace root directory. | |
| role | No | Role label, e.g. backend-specialist, frontend-dev, reviewer, coordinator. | |
| status | No | ||
| channels | No | Optional pub/sub channels to subscribe to, e.g. ['api-contract', 'release']. | |
| agent_uri | No | Your AGP URI (from SessionStart, e.g. agp://local/cli/<conv_id>). | |
| description | No | Short summary of what this agent owns. | |
| owned_paths | No | Glob paths owned by this agent, e.g. ['ai-platform/**']. | |
| wakeup_mode | No | Wakeup mode: 'hook' (active hooks + agp.listen), 'auto_cli' (detached CLI resume), or 'webhook'. | |
| webhook_url | No | Optional HTTPS/HTTP webhook callback URL. | |
| capabilities | No | Declared capabilities, e.g. ['code.read', 'code.edit', 'test.run']. | |
| display_name | No | Clear task-based human name, e.g. 'Backend API (Auth Fix)'. | |
| max_context_tokens | No | Max estimated tokens per incoming AGP message (default 4000). |