get_session_context
Retrieves the active pipeline phase, role guidelines, and filtered ADRs for a project. Optionally resolves a specific role directly, bypassing session state.
Instructions
[SESSION TOOLS] Reads session.md, detects the active pipeline phase, and returns core guidelines + phase-appropriate role guidelines + filtered foundational ADRs
role-linked skill stubs (=== PLAYBOOKS === section, when the role has skills registered) as a single assembled string.
If start_role is provided, session.md is bypassed entirely: the named role is resolved directly and SESSION STATE is omitted from the response.
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>"
},
"name": "get_session_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | Project name to read session state from | |
| start_role | No | Optional. If provided, resolve this role directly without reading session.md. Useful for invoking standalone or on-demand roles without disturbing pipeline state. Returns an error string listing valid roles if the value is unrecognised. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |