# Get task

Tool: `veryfront__get_task`

Read one task definition by its ID to inspect its target, input and output schemas and whether it can be scheduled; returns the task. Requires project.runs.read.

## Arguments

| Name                    | Type                  | Required | Description                                                                                                                                                               |
| ----------------------- | --------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference`     | string                |          | Project ID or slug                                                                                                                                                        |
| `task_id`               | string                | Yes      | Task ID from list\_tasks, for example sync-data                                                                                                                           |
| `source_target_kind`    | string                |          | Source to read: project, main\_branch, environment or preview\_branch. Overrides runtime\_target\_kind. One of `project`, `main_branch`, `environment`, `preview_branch`. |
| `runtime_target_kind`   | string \| null        |          | Runtime target to read from: main\_branch, environment or preview\_branch.                                                                                                |
| `target_environment_id` | string · uuid \| null |          | Environment to read from when the target kind is environment.                                                                                                             |
| `target_branch_id`      | string · uuid \| null |          | Preview branch to use when the target kind is preview\_branch.                                                                                                            |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__get_task",
    "arguments": {
      "task_id": "string"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"id\":\"string\",\"name\":\"string\",\"description\":\"string\",\"target\":\"string\",\"source_path\":\"string\",\"edit_mode\":\"structured\",\"input_schema\":{},\"output_schema\":{},\"schedulable\":false}"
      }
    ],
    "structuredContent": {
      "id": "string",
      "name": "string",
      "description": "string",
      "target": "string",
      "source_path": "string",
      "edit_mode": "structured",
      "input_schema": {},
      "output_schema": {},
      "schedulable": false
    }
  }
}
```
