# veryfront__read_prompt_source

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

Risk: read\_only.

## Arguments

| Name                    | Type   | Required | Description                                                                                                        |
| ----------------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------ |
| `project_reference`     | string |          | Project ID or slug                                                                                                 |
| `prompt_id`             | string | Yes      | Prompt ID from list\_prompts                                                                                       |
| `source_target_kind`    | string |          | Source to read the prompt file from: project or preview\_branch. Falls back to runtime\_target\_kind when omitted. |
| `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.                                                      |
| `target_branch_id`      |        |          | Preview branch to use. Required for the preview\_branch target; rejected for any other target.                     |

## Call it

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