# veryfront__update_task

Change the name, description or schedulable flag of a structured task, where an omitted description or flag keeps its value; returns the updated task source document. Requires project.runs.write.

Risk: mutating.

## Arguments

| Name                 | Type        | Required | Description                                                           |
| -------------------- | ----------- | -------- | --------------------------------------------------------------------- |
| `project_reference`  | string      |          | Project ID or slug that owns the task.                                |
| `task_id`            | string      | Yes      | Existing task identifier to update.                                   |
| `name`               | string      | Yes      | Updated human-readable task name.                                     |
| `description`        | string,null |          | Updated task description. Omit it to keep the current description.    |
| `schedulable`        | boolean     |          | Updated schedulable flag. Omit it to keep the current value.          |
| `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__update_task",
    "arguments": {
      "task_id": "<task_id>",
      "name": "<name>"
    }
  }
}
```
