Definition of a callable tool exposed to an agent session.
Tools default to target: :environment, meaning their executor receives the
current execution environment. Session-managed tools such as subagent lifecycle
operations set target: :session and receive the current session instead.
Summary
Functions
Serializes a tool into the model-facing definition shape.