run
Give phones a task. Clousd's agent looks at the screen, taps and types until the goal is reached, and finishes with an answer. Several devices = the same task on each, all at once (one run per phone under one parent). Returns the run with its status; if it is still going, follow it with run_status. A run in mode=ask may stop with waiting_for: reply with answer. Logins: never ask the user for passwords - pass credentials; their values are typed on the phone without you or the model seeing them. A task that needs a file (post this photo, fill this form from this PDF, install this app): upload it once with the library tool and pass its id in files - do not push files by hand each time.
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": {
"task": "<task>",
"devices": "<devices>"
},
"name": "run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto (default): works without stopping; ask: asks before risky steps (answer them) | auto |
| task | Yes | the goal in plain words, e.g. "Open Settings and tell me the Android version" or "Sign in to the app with the saved login and open the profile" | |
| files | No | Library files to put on the phone before the task: ids from the library tool, comma-separated (up to 8). Photos and videos land in the gallery, documents in Downloads, apks are installed; the agent is told where each one is | |
| devices | Yes | one device or several: names, labels or numbers, comma-separated or a JSON list (up to 32) | |
| max_steps | No | step limit, default 100 | |
| credentials | No | saved logins to use: "package/name" items, comma-separated, from the credentials tool | |
| wait_seconds | No | wait up to this long for the result, 0..50 | |
| output_schema | No | optional JSON Schema: the answer also comes back as structured_output in this shape |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |