# veryfront__create_task

Create a task source file in the project source or a preview branch when a new unit of work must be runnable or schedulable; returns the task source document. Requires project.runs.write.

Risk: mutating.

## Arguments

| Name                 | Type        | Required | Description                                                                          |
| -------------------- | ----------- | -------- | ------------------------------------------------------------------------------------ |
| `project_reference`  | string      |          | Project ID or slug that owns the new task.                                           |
| `id`                 | string      | Yes      | Stable task identifier used in MCP and project source.                               |
| `name`               | string      | Yes      | Human-readable task name.                                                            |
| `description`        | string,null |          | Optional short description of what the task does.                                    |
| `schedulable`        | boolean     |          | Whether the task can be used from schedulers and cron definitions. Defaults to true. |
| `source_target_kind` | string      |          | Source to write: project or preview\_branch. Defaults to project.                    |
| `target_branch_id`   |             |          | Preview branch to write when source\_target\_kind is preview\_branch.                |

## Call it

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__create_task",
    "arguments": {
      "id": "<id>",
      "name": "<name>"
    }
  }
}
```
