update_session_context
Update session context: register a skill invocation, record a recommendation, set focus area, switch lens, or store custom state for cross-skill coordination.
Arguments
skill_invokedstringoptionalRegister that this skill was just invoked (e.g. "upg-show-status")
recommendationstringoptionalRecord a recommendation given to the user (e.g. "Run /upg-new-strategy to fill strategy gap")
focus_areastringoptionalSet the current focus area (e.g. "strategy", "validation", "user_research")
lensstringoptionalSwitch the active lens. Changes what context, skills, and gaps are surfaced first. Canonical lens ids (derived from core): product, ux_design, engineering, growth, business, research, marketing, full.
persist_lensbooleanoptionalIf true, also save the lens to the .upg file so it persists across sessions
customobjectoptionalArbitrary key-value pairs for cross-skill state
Returns
{ updated: true, session: SessionContext }reflecting the new state.
Examples
Live call against the Notion example graph.
Output
{
"updated": true,
"session": {
"lens": "product",
"skills_invoked": [],
"recommendations_given": [],
"focus_area": null,
"custom": {}
}
}