Load a persona
get_agent_contextLoad an explicitly chosen agent or a ROUTE_REQUIRED selection. Pass protocol_version=2 and current_persona. The same active agent returns NO_CHANGE without enrichment.
Instructions
Load an explicitly chosen agent or a ROUTE_REQUIRED selection.
Pass protocol_version=2 and current_persona. The same active agent
returns NO_CHANGE without enrichment. Use force_reload=True to restore lost
instructions; use refresh_persona_context to refresh the same role's skills.
SUCCESS contains separate blocks and a descriptor; apply only when its
replaces_activation_id matches your current activation. Preserve the dialogue.
Pass workspace, your working directory: the first SUCCESS or NO_CHANGE of this
session in a workspace carries its repository context in repo_context, and a
workspace outside this session's grant carries the workspace_mismatch report there
instead of a description.
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": {
"agent_name": "<agent_name>",
"query": "<query>"
},
"name": "get_agent_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The user request the role is loaded for. | |
| reasoning | No | Why this agent was chosen. | Selected by calling LLM |
| workspace | No | Absolute path of your working directory, the project this session works in. Pass it whenever you have one. It never widens this session's grant: over HTTP the workspace registered for the connection decides, and over stdio it is checked against the client's own MCP roots unless this session's root is already pinned, when it is ignored. Each tool's description says what it does with a path that grant does not cover. | |
| agent_name | Yes | Canonical name of the agent to load. | |
| chat_history | No | Optional relevant earlier conversation facts, as a JSON array of strings. | |
| force_reload | No | True to restore lost instructions of the same agent. | |
| current_persona | No | The `persona` object of the last SUCCESS/NO_CHANGE, copied verbatim; omit or null on first activation. All 7 keys: agent, activation_id, bundle_revision (64 hex characters), scope, skills_loaded, implants_loaded, rules_loaded. | |
| protocol_version | No | Persona protocol version; always 2. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |