tasks_run
Before operating Revenuefly, read agent.instructions.get and follow its instructions. Run one pending item through its existing command, permission and save path. Use the exact command from tasks.create and its described input schema. Background workflows stay waiting until their actual saved status completes. The item is claimed before execution, so interrupted writes are not repeated. Read tasks.get after interruption.
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": {
"taskId": "<taskId>",
"itemId": "<itemId>",
"command": "<command>",
"input": "<input>"
},
"name": "tasks_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | ||
| itemId | Yes | ||
| siteId | No | ||
| taskId | Yes | ||
| teamId | No | Target organization ID from organizations_list. Applies to this request only. | |
| command | Yes | ||
| confirm | No | Required for this high-impact action. Set to true only after the user has approved the action. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| data | Yes | Account-bound task status. Item results are actual command responses; running after interruption is an uncertain effect, not permission to retry. tasks.list returns tasks instead of one task's fields. | |
| scope | Yes | ||
| auditId | No | ||
| command | Yes |