# Get prompt

Tool: `veryfront__get_prompt`

Read one prompt by its ID to inspect its name and description; returns the prompt. Requires project.agents.read.

## 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 prompts from: project, main\_branch, environment or preview\_branch. Falls back to runtime\_target\_kind when omitted. One of `project`, `main_branch`, `environment`, `preview_branch`. |
| `runtime_target_kind`   | string \| null        |          | Runtime target to read from when source\_target\_kind is omitted: main\_branch, environment or preview\_branch.                                                                                         |
| `target_environment_id` | string · uuid \| null |          | Environment to use. Required for the environment target; rejected for any other target.                                                                                                                 |
| `target_branch_id`      | string · uuid \| null |          | Preview branch to use. Required for the preview\_branch target; rejected for any other target.                                                                                                          |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__get_prompt",
    "arguments": {
      "prompt_id": "string"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"id\":\"string\",\"name\":\"string\",\"description\":\"string\",\"source_path\":\"string\",\"edit_mode\":\"structured\"}"
      }
    ],
    "structuredContent": {
      "id": "string",
      "name": "string",
      "description": "string",
      "source_path": "string",
      "edit_mode": "structured"
    }
  }
}
```
