# veryfront__read_task_source

Read the editable source behind one task before changing it; returns the task source document with its source text, edit mode and the reasons it can only be edited as source. Requires project.runs.read.

Risk: read\_only.

## Arguments

| Name                    | Type   | Required | Description                                                                                  |
| ----------------------- | ------ | -------- | -------------------------------------------------------------------------------------------- |
| `project_reference`     | string |          | Project ID or slug                                                                           |
| `task_id`               | string | Yes      | Task ID from list\_tasks                                                                     |
| `source_target_kind`    | string |          | Source to read: project or preview\_branch. Defaults to runtime\_target\_kind, then project. |
| `target_branch_id`      |        |          | Preview branch to use when the target kind is preview\_branch.                               |
| `runtime_target_kind`   |        |          | Used as the source target kind when source\_target\_kind is omitted.                         |
| `target_environment_id` |        |          | Not supported for source reads; a non-null value is rejected.                                |

## Call it

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__read_task_source",
    "arguments": {
      "task_id": "<task_id>"
    }
  }
}
```
