# veryfront__read_project_resource_source

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

Risk: read\_only.

## Arguments

| Name                    | Type   | Required | Description                                                                                    |
| ----------------------- | ------ | -------- | ---------------------------------------------------------------------------------------------- |
| `project_reference`     | string |          | Project ID or slug                                                                             |
| `resource_id`           | string | Yes      | Resource ID from list\_project\_resources                                                      |
| `runtime_target_kind`   |        |          | Provide the runtime target kind.                                                               |
| `target_environment_id` |        |          | Provide the target environment id.                                                             |
| `target_branch_id`      |        |          | Provide the target branch id.                                                                  |
| `source_target_kind`    | string |          | The source to read: project (the default), main\_branch (reads as project) or preview\_branch. |

## Call it

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