open_agent

Function open_agent 

Source
pub fn open_agent(state: &Arc<AppState>, args: &Value) -> Result<Value, String>
Expand description

Open an agent pane with a specific Forge agent.

Dispatches a CustomEvent('agentmux-open-agent') to the frontend, which creates a block with view: "agent" + agentId and lets the AgentView handle the full launch flow (CLI resolve, auth, controller).

Args: agent_id — Forge agent ID or name (e.g. "agentx")