> ## 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.

# Start Or Stop Task

> Start or stop an existing Octoparse task through AgentTools.

> [!NOTE]
>
> The request body, generated cURL example, and response schema are shown in the API panel.

Start or stop an existing Octoparse task through AgentTools.

**1. Locate the task**

Use `searchTasks` when the task ID is not already known.

**2. Request an action**

Send `action` as `start` or `stop`.

**3. Continue with export**

Use `exportData` when response guidance indicates data may be available.

```text theme={null}
searchTasks -> startOrStopTask -> exportData
```

> [card] Request body
>
> `taskId` and `action` are required.

> [card] Actions
>
> Allowed `action` values are `start` and `stop`.

> [accordion] Status values
>
> `start_requested` and `stop_requested` mean the request was accepted.
>
> `already_running` and `already_stopped` mean no state change was needed.
>
> `start_rejected`, `stop_rejected`, and `invalid` require client-side handling or user review.

> [accordion] Response guidance
>
> Follow `retryGuidance`, `suggestedNextCall`, `workflow`, and `toolHint` instead of hard-coding polling intervals.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.