Protected InternalExecutes the Load Agent Spec action.
The action parameters containing:
Action result with complete AgentSpec structure
Executes the action with the provided parameters.
The action execution parameters including context
Promise resolving to the action result
Private getGet boolean parameter with default
Private getGet parameter value by name (case-insensitive)
Private truncateTruncates PromptText fields in SubAgents (and nested SubAgents) recursively. Top-level agent prompts are NOT truncated - only subagent prompts. Applied to both the AgentSpec output parameter and Message to avoid super long outputs.
Private truncate
Action that loads the complete AgentSpec structure for an existing agent by ID.
This action retrieves the full agent specification including all nested structures: Actions, SubAgents, Prompts, Steps, and Paths. The result is the complete AgentSpec JSON structure suitable for analysis, modification, or display.
Example