# veryfront__create_prompt

Create a prompt source file in the project source or a preview branch so agents and clients can reuse its text; returns the prompt source document. Requires project.agents.write.

Risk: mutating.

## Arguments

| Name                 | Type        | Required | Description                                                                                                                                           |
| -------------------- | ----------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference`  | string      |          | Project ID or slug                                                                                                                                    |
| `id`                 | string      | Yes      | Prompt id, also the name of its source file.                                                                                                          |
| `description`        | string,null |          | Prompt description. Omit it or send null for none.                                                                                                    |
| `content`            | string      | Yes      | Prompt text.                                                                                                                                          |
| `source`             | string      |          | Complete prompt source file. It must export a structured prompt whose id matches id; when omitted the file is generated from description and content. |
| `source_target_kind` | string      |          | Where to write the prompt file: project (the default) or preview\_branch. Other values are 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__create_prompt",
    "arguments": {
      "id": "<id>",
      "content": "<content>"
    }
  }
}
```
