# veryfront__list_tasks

List the tasks defined in the source of a project, a branch or an environment to find a task to run, schedule or edit; returns every task as one page with the source files that could not be read as tasks. Requires project.runs.read.

Risk: read\_only.

## Arguments

| Name                    | Type   | Required | Description                                                                                             |
| ----------------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------- |
| `project_reference`     | string |          | Project ID or slug                                                                                      |
| `source_target_kind`    | string |          | Source to read: project, main\_branch, environment or preview\_branch. Overrides runtime\_target\_kind. |
| `runtime_target_kind`   |        |          | Runtime target to read from: main\_branch, environment or preview\_branch.                              |
| `target_environment_id` |        |          | Environment to read from when the target kind is environment.                                           |
| `target_branch_id`      |        |          | Preview branch to use when the target kind is preview\_branch.                                          |

## Call it

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__list_tasks",
    "arguments": {}
  }
}
```
