Create task

veryfront__create_task

Requires project.runs.write.

Access

No external-service connection is required. Use a Veryfront credential with access to the requested resources.

Call type: Can change resources.

Arguments

FieldTypeRequiredDescription and constraints
project_referencestringNoProject ID or slug that owns the new task.
idstringYesStable task identifier used in MCP and project source. Minimum length: 1. Maximum length: 128.
namestringYesHuman-readable task name. Minimum length: 1.
descriptionstring or nullNoOptional short description of what the task does.
schedulablebooleanNoWhether the task can be used from schedulers and cron definitions. Defaults to true.
source_target_kindstringNoSource to write: project or preview_branch. Defaults to project.
target_branch_idstring or nullNoPreview branch to write when source_target_kind is 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__create_task",    "arguments": {      "id": "example",      "name": "example"    }  }}

Result

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

FieldTypeRequiredDescription and constraints
idstringYesTask identifier.
namestringYesHuman-readable task name.
descriptionstring or nullYesShort description of what the task does.
targetstringYesExecution target that implements the task.
source_pathstringYesSource file path where the task definition lives.
sourcestringYesTask source code or structured document content.
schedulablebooleanYesWhether the task can be used from schedulers.
edit_modestringYesEditing mode supported for the task definition. Values: "structured", "source_only".
source_only_reasonsstring[]YesReasons why the task can only be edited as raw source, when applicable.

Full schemas

input-schema.json
{  "type": "object",  "properties": {    "project_reference": {      "type": "string",      "description": "Project ID or slug that owns the new task."    },    "id": {      "type": "string",      "minLength": 1,      "maxLength": 128,      "pattern": "^[a-z0-9][a-z0-9-]*$",      "description": "Stable task identifier used in MCP and project source."    },    "name": {      "type": "string",      "minLength": 1,      "description": "Human-readable task name."    },    "description": {      "type": [        "string",        "null"      ],      "description": "Optional short description of what the task does."    },    "schedulable": {      "type": "boolean",      "description": "Whether the task can be used from schedulers and cron definitions. Defaults to true."    },    "source_target_kind": {      "type": "string",      "description": "Source to write: project or preview_branch. Defaults to project."    },    "target_branch_id": {      "anyOf": [        {          "type": "string",          "format": "uuid",          "description": "Provide the target branch id."        },        {          "type": "null",          "description": "Provide the target branch id."        }      ],      "description": "Preview branch to write when source_target_kind is preview_branch."    }  },  "required": [    "id",    "name"  ],  "additionalProperties": false,  "description": "Arguments for creating a task definition.",  "$schema": "http://json-schema.org/draft-07/schema#"}
output-schema.json
{  "type": "object",  "properties": {    "id": {      "type": "string",      "description": "Task identifier."    },    "name": {      "type": "string",      "description": "Human-readable task name."    },    "description": {      "type": [        "string",        "null"      ],      "description": "Short description of what the task does."    },    "target": {      "type": "string",      "description": "Execution target that implements the task."    },    "source_path": {      "type": "string",      "description": "Source file path where the task definition lives."    },    "source": {      "type": "string",      "description": "Task source code or structured document content."    },    "schedulable": {      "type": "boolean",      "description": "Whether the task can be used from schedulers."    },    "edit_mode": {      "type": "string",      "enum": [        "structured",        "source_only"      ],      "description": "Editing mode supported for the task definition."    },    "source_only_reasons": {      "type": "array",      "items": {        "type": "string"      },      "description": "Reasons why the task can only be edited as raw source, when applicable."    }  },  "required": [    "id",    "name",    "description",    "target",    "source_path",    "source",    "schedulable",    "edit_mode",    "source_only_reasons"  ],  "additionalProperties": false,  "description": "Task definition including editable source content.",  "$schema": "http://json-schema.org/draft-07/schema#"}