get_guideline
Assemble core guidelines, role-specific phase guidelines, and foundational ADRs for a designated agent role during a mid-session switch, preserving pipeline integrity.
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.
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 |