unregister
Deactivate a registered agent by name or key. This removes the agent from the directory, freeing its name for reuse while retaining associated messages.
Instructions
Remove an agent from the directory and free its name. The messages addressed to it are kept in the database, until a full token deletes their conversation over HTTP, but no tool shows them again, not even to a new agent that registers the same name; keptMessages says how many. With no arguments it removes you, and this session is unregistered until it calls register again (with a token bound to one agent, that token stops working). With name and key it removes that agent, only if the key matches (an agent that has no key can be removed by name alone); name and key work even from a session that has not registered, but not with a token bound to one agent. With a token approved to register its own agents, a name removes only an agent that token registered, without a key, and a key is refused. Any other session still acting as the removed agent is unregistered too. A process started with MESSAGE_CP_AGENT registers that agent again when it starts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | That agent's key, required if it has one. | |
| name | No | The agent to remove. Omit to remove yourself. |