Computer use CLI for AI agents
Rust accessibilityaccessibility-apiai-agentsautomationclicomputer-usecomputer-use-agentcomputer-use-agentsdesktop-automationmacosmcprust
use clap::{Args, Subcommand};
#[derive(Args, Debug)]
#[command(after_help = "\
Skills are compiled into the binary, so they always match this exact
agent-desktop version. Each command prints the JSON envelope; the skill's
markdown is in data.content.
Start here:
agent-desktop skills get desktop # Core guide, any OS
agent-desktop skills get platform # Guide for the OS you run on
More:
agent-desktop skills # List skills
agent-desktop skills get desktop workflows # One reference
agent-desktop skills get windows # A named platform guide
agent-desktop skills path # Where skills live")]
pub(crate) struct SkillsArgs {
#[command(subcommand)]
pub action: Option<SkillsAction>,
}
#[derive(Subcommand, Debug)]
pub(crate) enum SkillsAction {
#[command(about = "List bundled skills with summaries (default)")]
List,
#[command(about = "Print a skill (markdown in data.content)")]
Get(SkillsGetArgs),
#[command(about = "Print where bundled skills live")]
Path,
}
#[derive(Args, Debug)]
pub(crate) struct SkillsGetArgs {
#[arg(help = "Skill name or alias: desktop, platform, macos, windows, linux, ffi, jev")]
pub name: String,
#[arg(
help = "Reference filename (e.g. workflows or references/workflows.md). Omit for the main guide."
)]
pub reference: Option<String>,
#[arg(long, help = "Append every reference file to the output")]
pub full: bool,
}