veryfront__read_project_resource_source
Requires project.resources.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 |
resource_id | string | Yes | Resource ID from list_project_resources |
runtime_target_kind | string or null | No | Provide the runtime target kind. |
target_environment_id | string or null | No | Provide the target environment id. |
target_branch_id | string or null | No | Provide the target branch id. |
source_target_kind | string | No | The source to read: project (the default), main_branch (reads as project) or preview_branch. Values: "project", "main_branch", "preview_branch". |
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_project_resource_source",7 "arguments": {8 "resource_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. |
pattern | string | Yes | |
description | string | Yes | Human-readable description returned by the tool. |
title | string or null | Yes | Short human-readable title 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 "resource_id": {9 "type": "string",10 "description": "Resource ID from list_project_resources"11 },12 "runtime_target_kind": {13 "anyOf": [14 {15 "type": "string",16 "enum": [17 "main_branch",18 "environment",19 "preview_branch"20 ],21 "description": "Provide the runtime target kind."22 },23 {24 "type": "null",25 "description": "Provide the runtime target kind."26 }27 ],28 "description": "Provide the runtime target kind."29 },30 "target_environment_id": {31 "anyOf": [32 {33 "type": "string",34 "format": "uuid",35 "description": "Provide the target environment id."36 },37 {38 "type": "null",39 "description": "Provide the target environment id."40 }41 ],42 "description": "Provide the target environment id."43 },44 "target_branch_id": {45 "anyOf": [46 {47 "type": "string",48 "format": "uuid",49 "description": "Provide the target branch id."50 },51 {52 "type": "null",53 "description": "Provide the target branch id."54 }55 ],56 "description": "Provide the target branch id."57 },58 "source_target_kind": {59 "type": "string",60 "enum": [61 "project",62 "main_branch",63 "preview_branch"64 ],65 "description": "The source to read: project (the default), main_branch (reads as project) or preview_branch."66 }67 },68 "required": [69 "resource_id"70 ],71 "additionalProperties": false,72 "$schema": "http://json-schema.org/draft-07/schema#",73 "description": "Arguments for the read_project_resource_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 "pattern": {9 "type": "string"10 },11 "description": {12 "type": "string",13 "description": "Human-readable description returned by the tool."14 },15 "title": {16 "type": [17 "string",18 "null"19 ],20 "description": "Short human-readable title returned by the tool."21 },22 "source_path": {23 "type": "string"24 },25 "source": {26 "type": "string"27 },28 "edit_mode": {29 "type": "string",30 "enum": [31 "structured",32 "source_only"33 ]34 },35 "source_only_reasons": {36 "type": "array",37 "items": {38 "type": "string"39 },40 "description": "List of source only reasons associated with this tool result."41 }42 },43 "required": [44 "id",45 "pattern",46 "description",47 "title",48 "source_path",49 "source",50 "edit_mode",51 "source_only_reasons"52 ],53 "additionalProperties": false,54 "description": "Structured result returned by the read_project_resource_source tool.",55 "$schema": "http://json-schema.org/draft-07/schema#"56}