Functions
Session
Alias of ::session/Session
ns
Alias of ::ai::agent::mcp/
Helpers for agent-scoped MCP tools.
required-param
fn (params: Map, name: Str): Str
Return a required string parameter or an Err with a helpful message.
select-session
fn (params: Map, registered: Vec<::ai::session/Session>): ::ai::session/Session?
Pick a session for an MCP tool call. params.session_id may select
only a session already present in registered; otherwise the first
registered session is used. Returns null when no authorized session
can be selected.