veryfront__read_prompt_source
Requires project.agents.read.
Access
No external-service connection is required. Use a Veryfront credential with access to the requested resources.
Call type: Read-only.
Arguments
| Field | Type | Required | Description and constraints |
|---|---|---|---|
project_reference | string | No | Project ID or slug |
prompt_id | string | Yes | Prompt ID from list_prompts |
source_target_kind | string | No | Source to read the prompt file from: project or preview_branch. Falls back to runtime_target_kind when omitted. Values: "project", "main_branch", "preview_branch". |
runtime_target_kind | string or null | No | Used as the source target kind when source_target_kind is omitted. |
target_environment_id | string or null | No | Not supported for source reads; a non-null value is 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__read_prompt_source",7 "arguments": {8 "prompt_id": "example"9 }10 }11}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 "prompt_id": {9 "type": "string",10 "description": "Prompt ID from list_prompts"11 },12 "source_target_kind": {13 "type": "string",14 "enum": [15 "project",16 "main_branch",17 "preview_branch"18 ],19 "description": "Source to read the prompt file from: project or preview_branch. Falls back to runtime_target_kind when omitted."20 },21 "runtime_target_kind": {22 "anyOf": [23 {24 "type": "string",25 "enum": [26 "main_branch",27 "environment",28 "preview_branch"29 ],30 "description": "Provide the runtime target kind."31 },32 {33 "type": "null",34 "description": "Provide the runtime target kind."35 }36 ],37 "description": "Used as the source target kind when source_target_kind is omitted."38 },39 "target_environment_id": {40 "anyOf": [41 {42 "type": "string",43 "format": "uuid",44 "description": "Provide the target environment id."45 },46 {47 "type": "null",48 "description": "Provide the target environment id."49 }50 ],51 "description": "Not supported for source reads; a non-null value is rejected."52 },53 "target_branch_id": {54 "anyOf": [55 {56 "type": "string",57 "format": "uuid",58 "description": "Provide the target branch id."59 },60 {61 "type": "null",62 "description": "Provide the target branch id."63 }64 ],65 "description": "Preview branch to use. Required for the preview_branch target; rejected for any other target."66 }67 },68 "required": [69 "prompt_id"70 ],71 "additionalProperties": false,72 "$schema": "http://json-schema.org/draft-07/schema#",73 "description": "Arguments for the read_prompt_source tool."74}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 read_prompt_source tool.",59 "$schema": "http://json-schema.org/draft-07/schema#"60}