> ## Documentation Index
> Fetch the complete documentation index at: https://www.octoparse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# execute_task

> Run a scraping template and retrieve results.

<Info>
  Use this tool to run a scraping job end-to-end. Supports two execution modes depending on your client's capabilities.
</Info>

<Steps>
  <Step title="When to use">
    Use this when you want to run a scraping job and retrieve results. The tool automatically uses the best execution mode available for your client.
  </Step>

  <Step title="What it returns">
    * **MCP Task mode** (if your client supports MCP Task): real-time progress updates, completion status, and results streamed as the task runs
    * **Compatibility mode** (most clients): a task ID returned immediately after the task is created; your client polls for results periodically
  </Step>

  <Step title="Common failure cases">
    * The template does not support cloud execution
    * The account has no cloud run credits
    * The template name was not found
  </Step>
</Steps>

#### Example prompt

<Card>
  *"Run the Amazon Best Sellers template and show me the results"*
</Card>
