veryfront__read_task_source
Requires project.runs.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 |
task_id | string | Yes | Task ID from list_tasks |
source_target_kind | string | No | Source to read: project or preview_branch. Defaults to runtime_target_kind, then project. Values: "project", "main_branch", "environment", "preview_branch". |
target_branch_id | string or null | No | Preview branch to use when the target kind is 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. |
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_task_source",7 "arguments": {8 "task_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 | Task identifier. |
name | string | Yes | Human-readable task name. |
description | string or null | Yes | Short description of what the task does. |
target | string | Yes | Execution target that implements the task. |
source_path | string | Yes | Source file path where the task definition lives. |
source | string | Yes | Task source code or structured document content. |
schedulable | boolean | Yes | Whether the task can be used from schedulers. |
edit_mode | string | Yes | Editing mode supported for the task definition. Values: "structured", "source_only". |
source_only_reasons | string[] | Yes | Reasons why the task can only be edited as raw source, when applicable. |
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 "task_id": {9 "type": "string",10 "description": "Task ID from list_tasks"11 },12 "source_target_kind": {13 "type": "string",14 "enum": [15 "project",16 "main_branch",17 "environment",18 "preview_branch"19 ],20 "description": "Source to read: project or preview_branch. Defaults to runtime_target_kind, then project."21 },22 "target_branch_id": {23 "anyOf": [24 {25 "type": "string",26 "format": "uuid",27 "description": "Provide the target branch id."28 },29 {30 "type": "null",31 "description": "Provide the target branch id."32 }33 ],34 "description": "Preview branch to use when the target kind is preview_branch."35 },36 "runtime_target_kind": {37 "anyOf": [38 {39 "type": "string",40 "enum": [41 "main_branch",42 "environment",43 "preview_branch"44 ],45 "description": "Provide the runtime target kind."46 },47 {48 "type": "null",49 "description": "Provide the runtime target kind."50 }51 ],52 "description": "Used as the source target kind when source_target_kind is omitted."53 },54 "target_environment_id": {55 "anyOf": [56 {57 "type": "string",58 "format": "uuid",59 "description": "Provide the target environment id."60 },61 {62 "type": "null",63 "description": "Provide the target environment id."64 }65 ],66 "description": "Not supported for source reads; a non-null value is rejected."67 }68 },69 "required": [70 "task_id"71 ],72 "additionalProperties": false,73 "$schema": "http://json-schema.org/draft-07/schema#",74 "description": "Arguments for the read_task_source tool."75}output-schema.json
1{2 "type": "object",3 "properties": {4 "id": {5 "type": "string",6 "description": "Task identifier."7 },8 "name": {9 "type": "string",10 "description": "Human-readable task name."11 },12 "description": {13 "type": [14 "string",15 "null"16 ],17 "description": "Short description of what the task does."18 },19 "target": {20 "type": "string",21 "description": "Execution target that implements the task."22 },23 "source_path": {24 "type": "string",25 "description": "Source file path where the task definition lives."26 },27 "source": {28 "type": "string",29 "description": "Task source code or structured document content."30 },31 "schedulable": {32 "type": "boolean",33 "description": "Whether the task can be used from schedulers."34 },35 "edit_mode": {36 "type": "string",37 "enum": [38 "structured",39 "source_only"40 ],41 "description": "Editing mode supported for the task definition."42 },43 "source_only_reasons": {44 "type": "array",45 "items": {46 "type": "string"47 },48 "description": "Reasons why the task can only be edited as raw source, when applicable."49 }50 },51 "required": [52 "id",53 "name",54 "description",55 "target",56 "source_path",57 "source",58 "schedulable",59 "edit_mode",60 "source_only_reasons"61 ],62 "additionalProperties": false,63 "description": "Task definition including editable source content.",64 "$schema": "http://json-schema.org/draft-07/schema#"65}