adaptix_agent_command_execute
Execute a command on an AdaptixC2 agent using its agent ID and command name, passing command-specific JSON arguments and optionally waiting for the result or polling task status.
Instructions
Run a command on an agent. cmdline is the agent command name (e.g. shell, powershell, cat, ls, cd, download, socks, exit); data is a JSON string of that command's arguments. Argument names are per-command and this server normalizes the obvious ones: shell/powershell take {"cmd_params":"whoami"}, cat/ls/cd/mkdir take {"path":"C:\Users"}, download takes {"file":""}, cp/mv take {"src":…,"dst":…}. {"command":…}, {"cmd":…}, {"cmdline":…} and a bare string are translated to the right key for the commands in that table; anything else is passed through verbatim with a warning. Set wait_answer true to wait inline; otherwise poll adaptix_task_list — a task that reports 'undefined' means the key was wrong.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agent_id": "<agent_id>",
"cmdline": "<cmdline>"
},
"name": "adaptix_agent_command_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | JSON string of the command's arguments (default "{}"). | |
| cmdline | Yes | Agent command name, e.g. shell, sleep, cat, socks, exit. | |
| agent_id | Yes | Agent id from adaptix_agent_list. | |
| wait_answer | No | Wait for the command result inline (default false). |