Computer use CLI for AI agents
Rust accessibilityaccessibility-apiai-agentsautomationclicomputer-usecomputer-use-agentcomputer-use-agentsdesktop-automationmacosmcprust
use crate::{
AppError,
actions::action::Action,
adapter::PlatformAdapter,
commands::helpers::{RefArgs, execute_ref_action_with_context},
context::CommandContext,
};
use serde_json::Value;
/// Double-click tries AXOpen (headless) first. Without `--headed` and no
/// AXOpen it fails closed; with `--headed` the chain may perform a physical
/// double-click.
pub fn execute(
args: RefArgs,
adapter: &dyn PlatformAdapter,
context: &CommandContext,
) -> Result<Value, AppError> {
execute_ref_action_with_context(
args,
adapter,
context.request_base(Action::DoubleClick),
context,
)
}