Per-session runtime context for building executable agent tools.
This is a narrow capability object. It gives tool builders the project root, routed workspace access, command working directory data, and correlation ids without exposing raw session state.
Summary
Functions
Returns command environment entries for this context.
Deletes a file through the session router.
Edits a file through the session router.
Builds a tool context from runtime values.
Reads a file through the session router.
Returns opts accepted by MingaAgent.Tools.all/1.
Returns the command working directory for this context.
Writes a file through the session router.
Types
@type t() :: %MingaAgent.Tool.Context{ metadata: map(), project_root: String.t(), router_context: MingaAgent.ToolRouter.Context.t(), session_id: String.t() | nil }
Opaque-ish runtime context passed to source-owned tool builders.
Functions
Returns command environment entries for this context.
Deletes a file through the session router.
Edits a file through the session router.
Builds a tool context from runtime values.
Reads a file through the session router.
Returns opts accepted by MingaAgent.Tools.all/1.
Returns the command working directory for this context.
Writes a file through the session router.