veryfront__create_prompt
Requires project.agents.write.
Access
No external-service connection is required. Use a Veryfront credential with access to the requested resources.
Call type: Can change resources.
Arguments
| Field | Type | Required | Description and constraints |
|---|---|---|---|
project_reference | string | No | Project ID or slug |
id | string | Yes | Prompt id, also the name of its source file. Minimum length: 1. Maximum length: 128. |
description | string or null | No | Prompt description. Omit it or send null for none. |
content | string | Yes | Prompt text. Minimum length: 1. |
source | string | No | Complete prompt source file. It must export a structured prompt whose id matches id; when omitted the file is generated from description and content. Minimum length: 1. |
source_target_kind | string | No | Where to write the prompt file: project (the default) or preview_branch. Other values are rejected. |
target_branch_id | string or null | No | Preview branch to use. Required for the preview_branch target; rejected for any other target. |
Example request
Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.
request.json
1{2 "jsonrpc": "2.0",3 "id": 1,4 "method": "tools/call",5 "params": {6 "name": "veryfront__create_prompt",7 "arguments": {8 "id": "example",9 "content": "example"10 }11 }12}Result
The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.
| Field | Type | Required | Description and constraints |
|---|---|---|---|
id | string | Yes | Unique identifier for the returned record. |
name | string | Yes | Human-readable name for the returned record. |
description | string or null | Yes | Human-readable description returned by the tool. |
content | string or null | Yes | Source content or body returned by the tool. |
source_path | string | Yes | |
source | string | Yes | |
edit_mode | string | Yes | Values: "structured", "source_only". |
source_only_reasons | string[] | Yes | List of source only reasons associated with this tool result. |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "project_reference": {5 "type": "string",6 "description": "Project ID or slug"7 },8 "id": {9 "type": "string",10 "minLength": 1,11 "maxLength": 128,12 "pattern": "^[a-z0-9][a-z0-9-]*$",13 "description": "Prompt id, also the name of its source file."14 },15 "description": {16 "type": [17 "string",18 "null"19 ],20 "description": "Prompt description. Omit it or send null for none."21 },22 "content": {23 "type": "string",24 "minLength": 1,25 "description": "Prompt text."26 },27 "source": {28 "type": "string",29 "minLength": 1,30 "description": "Complete prompt source file. It must export a structured prompt whose id matches id; when omitted the file is generated from description and content."31 },32 "source_target_kind": {33 "type": "string",34 "description": "Where to write the prompt file: project (the default) or preview_branch. Other values are rejected."35 },36 "target_branch_id": {37 "anyOf": [38 {39 "type": "string",40 "format": "uuid",41 "description": "Provide the target branch id."42 },43 {44 "type": "null",45 "description": "Provide the target branch id."46 }47 ],48 "description": "Preview branch to use. Required for the preview_branch target; rejected for any other target."49 }50 },51 "required": [52 "id",53 "content"54 ],55 "additionalProperties": false,56 "description": "Arguments for the create_prompt tool.",57 "$schema": "http://json-schema.org/draft-07/schema#"58}output-schema.json
1{2 "type": "object",3 "properties": {4 "id": {5 "type": "string",6 "description": "Unique identifier for the returned record."7 },8 "name": {9 "type": "string",10 "description": "Human-readable name for the returned record."11 },12 "description": {13 "type": [14 "string",15 "null"16 ],17 "description": "Human-readable description returned by the tool."18 },19 "content": {20 "type": [21 "string",22 "null"23 ],24 "description": "Source content or body returned by the tool."25 },26 "source_path": {27 "type": "string"28 },29 "source": {30 "type": "string"31 },32 "edit_mode": {33 "type": "string",34 "enum": [35 "structured",36 "source_only"37 ]38 },39 "source_only_reasons": {40 "type": "array",41 "items": {42 "type": "string"43 },44 "description": "List of source only reasons associated with this tool result."45 }46 },47 "required": [48 "id",49 "name",50 "description",51 "content",52 "source_path",53 "source",54 "edit_mode",55 "source_only_reasons"56 ],57 "additionalProperties": false,58 "description": "Structured result returned by the create_prompt tool.",59 "$schema": "http://json-schema.org/draft-07/schema#"60}