XAgent icon

XAgent

Create and run xagent tasks

Task → Update

AI-generated

Summary

Adds an instruction to an existing XAgent task, optionally starts it, and waits for the task to reach a terminal status (completed, failed, or cancelled).

Inputs

  • Task ID (required) — The ID of the task to update.
  • Instruction (required) — Instruction text to add to the task.
  • Start — Whether to start the task after adding instructions (non‑interrupting, waits for current run to finish).
  • Wait for Completion — Whether to poll the task until it reaches a terminal status before returning.
  • Poll Interval (Seconds) — How often to check task status when waiting for completion.
  • Timeout (Seconds) — Maximum time to wait before failing (0 = no timeout).

Output shape

object

Contains the updated task details (from GetTaskDetails) and the task's log entries.

Examples

Example 1: Add a new instruction to task 42 and wait for it to finish.

Set Task ID = 42, Instruction = 'Analyze sales data', Start = true, Wait for Completion = true.

Links

Discussion