Reset all state
Execute a single tool call and return its stored result. The result is also retained in the manager's internal store, so ToJSON reflects the resultCount and bulk callers can be sure every dispatch is recorded.
Exposed publicly so the agent runtime can wrap each call in its own AIAgentRunStep (StepType='Tool'). For bulk-dispatch use, see ExecuteToolCalls.
Execute a batch of tool calls in parallel. Each call's StoredToolResult is also returned by ExecuteSingleToolCall for callers that wrap each invocation in its own AIAgentRunStep. Returns void to preserve the original contract.
Distinct artifact tool names available across all input artifacts. Used to register
artifact tools into a pipeline's tool registry (one invocable per name; the target
artifact is selected at call time via an artifactId param).
Returns artifact content formatted as NativeFileInput candidates for the AIPromptRunner. Only artifacts with a known MIME type and string/Buffer content are included. The runner will check each against the driver's FileCapabilities before actually attaching them.
For each candidate, eagerly extracts text content so the Prompts package can fall back to a plain-text injection when the driver doesn't support native file input (e.g., Cerebras, older OpenAI-compat providers).
One-line summary for compact contexts
Markdown tool documentation grouped by artifact type
Whether any artifacts are available
Initialize with input artifacts, assigning alpha IDs
Snapshot for persistence
Markdown manifest: artifact IDs, names, types, optional routing annotations, plus modality-mismatch warnings when the active driver can't process a media artifact's MIME. The warning is what stops non-vision models from pretending to see image artifacts based on pattern-matched few-shot examples.
Optionalopts: { supportedMimeTypes?: readonly string[] }OptionalsupportedMimeTypes?: readonly string[]Driver-declared file capabilities. When
provided, any artifact whose MIME doesn't match (and isn't a
text-based type the agent reaches via tools) gets a per-entry
warning telling the agent the model can't process the artifact.
Pass undefined to disable the check (legacy callers).
StaticBuildBuilds a truncated inline preview of a tables-based content JSON by keeping
only the first maxRowsPerTable rows per table and attaching truncation metadata.
StaticShouldDetermines whether artifact content should be externalized to MJStorage instead of being stored inline.
Optionaloptions: { maxInlineChars?: number }
Manages artifact tools for a single agent run.
Follows the ScratchpadManager pattern: