What problem does it solve?
It lets an AI agent perform BlueKing Job (bk-job) operations through the API gateway without manual console work: searching cron tasks, job templates, execution plans and instance logs, creating plans and cron tasks, executing scripts on target hosts, and distributing files, all with strict confirmation gates for write operations.
Core Features & Use Cases
- Script execution and file distribution: Run fast_execute_script on selected hosts and distribute server or local files to target machines via fast_transfer_file, with dry-run previews and mandatory user confirmation before any write.
- Job orchestration management: Search templates, create execution plans, launch plans, create and enable cron tasks, and query execution history, instance status, and step logs.
- Scoped, tenant-aware operations: Select biz or biz_set scopes, query host topology and execution accounts before filling parameters, and switch tenants per request via --bk-tenant-id.
- Use Case: Ask the agent to restart a service on specific servers; it locates the hosts and account, shows a full confirmation summary including default parameters, waits for your explicit confirmation, executes the script, and returns a clickable job instance link.
Quick Start
Ask the agent to list authorized business scopes, then request something like "run this shell script on hosts 10.0.0.1 and 10.0.0.2 with the root account" and confirm the summary it presents.