Read project resource source

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

FieldTypeRequiredDescription and constraints
project_referencestringNoProject ID or slug
resource_idstringYesResource ID from list_project_resources
runtime_target_kindstring or nullNoProvide the runtime target kind.
target_environment_idstring or nullNoProvide the target environment id.
target_branch_idstring or nullNoProvide the target branch id.
source_target_kindstringNoThe 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
{  "jsonrpc": "2.0",  "id": 1,  "method": "tools/call",  "params": {    "name": "veryfront__read_project_resource_source",    "arguments": {      "resource_id": "example"    }  }}

Result

The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.

FieldTypeRequiredDescription and constraints
idstringYesUnique identifier for the returned record.
patternstringYes
descriptionstringYesHuman-readable description returned by the tool.
titlestring or nullYesShort human-readable title returned by the tool.
source_pathstringYes
sourcestringYes
edit_modestringYesValues: "structured", "source_only".
source_only_reasonsstring[]YesList of source only reasons associated with this tool result.

Full schemas

input-schema.json
{  "type": "object",  "properties": {    "project_reference": {      "type": "string",      "description": "Project ID or slug"    },    "resource_id": {      "type": "string",      "description": "Resource ID from list_project_resources"    },    "runtime_target_kind": {      "anyOf": [        {          "type": "string",          "enum": [            "main_branch",            "environment",            "preview_branch"          ],          "description": "Provide the runtime target kind."        },        {          "type": "null",          "description": "Provide the runtime target kind."        }      ],      "description": "Provide the runtime target kind."    },    "target_environment_id": {      "anyOf": [        {          "type": "string",          "format": "uuid",          "description": "Provide the target environment id."        },        {          "type": "null",          "description": "Provide the target environment id."        }      ],      "description": "Provide the target environment id."    },    "target_branch_id": {      "anyOf": [        {          "type": "string",          "format": "uuid",          "description": "Provide the target branch id."        },        {          "type": "null",          "description": "Provide the target branch id."        }      ],      "description": "Provide the target branch id."    },    "source_target_kind": {      "type": "string",      "enum": [        "project",        "main_branch",        "preview_branch"      ],      "description": "The source to read: project (the default), main_branch (reads as project) or preview_branch."    }  },  "required": [    "resource_id"  ],  "additionalProperties": false,  "$schema": "http://json-schema.org/draft-07/schema#",  "description": "Arguments for the read_project_resource_source tool."}
output-schema.json
{  "type": "object",  "properties": {    "id": {      "type": "string",      "description": "Unique identifier for the returned record."    },    "pattern": {      "type": "string"    },    "description": {      "type": "string",      "description": "Human-readable description returned by the tool."    },    "title": {      "type": [        "string",        "null"      ],      "description": "Short human-readable title returned by the tool."    },    "source_path": {      "type": "string"    },    "source": {      "type": "string"    },    "edit_mode": {      "type": "string",      "enum": [        "structured",        "source_only"      ]    },    "source_only_reasons": {      "type": "array",      "items": {        "type": "string"      },      "description": "List of source only reasons associated with this tool result."    }  },  "required": [    "id",    "pattern",    "description",    "title",    "source_path",    "source",    "edit_mode",    "source_only_reasons"  ],  "additionalProperties": false,  "description": "Structured result returned by the read_project_resource_source tool.",  "$schema": "http://json-schema.org/draft-07/schema#"}