get_guideline
Retrieve the complete guideline bundle for a specified agent role, including role-specific phase guidelines and ADRs, to switch roles mid-session without altering pipeline state.
Instructions
[SESSION TOOLS] Assembles and returns the full context bundle (core guidelines + role-specific phase guidelines + filtered foundational ADRs) for a named agent role, without reading or modifying session.md.
Use this for deliberate mid-session role switches when you already know the target role and do not want to disturb pipeline state. Do NOT use at session start — call get_session_context instead, which also injects the SESSION STATE block and the correct NEXT STEP directive.
Allowed role values: any role registered in the project's role_profiles.yaml
(e.g. 'discovery', 'architecture', 'planning', 'execution'). Returns an error
string listing valid roles if the value is unrecognised.
Returns: assembled markdown string (core guidelines + role guidelines + ADRs). Raises: error string if role is not registered in role_profiles.yaml.
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": {
"project": "<project>",
"role": "<role>"
},
"name": "get_guideline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | Agent role name (e.g. 'discovery', 'execution') | |
| project | Yes | Project name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |