veryfront__read_project_resource_source

Read the editable source behind one project resource before changing it; returns the project resource with its source text, edit mode and the reasons it can only be edited as source. Requires project.resources.read.

Risk: read_only.

Arguments

NameTypeRequiredDescription
project_referencestringProject ID or slug
resource_idstringYesResource ID from list_project_resources
runtime_target_kindProvide the runtime target kind.
target_environment_idProvide the target environment id.
target_branch_idProvide the target branch id.
source_target_kindstringThe source to read: project (the default), main_branch (reads as project) or preview_branch.

Call it

JSON
{  "jsonrpc": "2.0",  "id": 1,  "method": "tools/call",  "params": {    "name": "veryfront__read_project_resource_source",    "arguments": {      "resource_id": "<resource_id>"    }  }}