# List source webhooks

Tool: `veryfront__list_source_webhooks`

List the webhooks declared in the source files of a project, a branch or an environment to see what a deployment creates; returns the declared webhooks, the discovery diagnostics and the source files that could not be read, without pagination. Requires project.agents.read.

## Arguments

| Name                    | Type                  | Required | Description                                                                                                                                                                                    |
| ----------------------- | --------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference`     | string                |          | Project ID or slug.                                                                                                                                                                            |
| `runtime_target_kind`   | string \| null        |          | Runtime target: main\_branch, environment or preview\_branch. Must match source\_target\_kind when both are sent.                                                                              |
| `target_environment_id` | string · uuid \| null |          | Environment id, for the environment source target.                                                                                                                                             |
| `target_branch_id`      | string · uuid \| null |          | Branch id, for the preview\_branch source target.                                                                                                                                              |
| `source_target_kind`    | string                |          | Source to read: project, main\_branch, environment or preview\_branch. Defaults to runtime\_target\_kind, then main\_branch. One of `project`, `main_branch`, `environment`, `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__list_source_webhooks",
    "arguments": {}
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"data\":[{\"id\":\"string\",\"name\":\"string\",\"description\":\"string\",\"target\":{\"kind\":\"agent\",\"id\":\"string\",\"conversation_mode\":\"create_new\",\"conversation_id\":\"00000000-0000-0000-0000-000000000000\"},\"prompt_template\":\"string\",\"event_filter\":null,\"definition_source\":\"source\",\"source_trigger_id\":\"string\",\"source_path\":\"string\",\"source_hash\":\"string\",\"edit_mode\":\"structured\"}],\"diagnostics\":[{\"kind\":\"source_file_diagnostic\",\"source_kind\":\"agent\",\"source_path\":\"string\",\"source_id\":\"string\",\"code\":\"parse_error\",\"message\":\"string\",\"details\":{}}],\"errors\":[{\"kind\":\"source_file_diagnostic\",\"source_kind\":\"agent\",\"source_path\":\"string\",\"source_id\":\"string\",\"code\":\"parse_error\",\"message\":\"string\",\"details\":{}}]}"
      }
    ],
    "structuredContent": {
      "data": [
        {
          "id": "string",
          "name": "string",
          "description": "string",
          "target": {
            "kind": "agent",
            "id": "string",
            "conversation_mode": "create_new",
            "conversation_id": "00000000-0000-0000-0000-000000000000"
          },
          "prompt_template": "string",
          "event_filter": null,
          "definition_source": "source",
          "source_trigger_id": "string",
          "source_path": "string",
          "source_hash": "string",
          "edit_mode": "structured"
        }
      ],
      "diagnostics": [
        {
          "kind": "source_file_diagnostic",
          "source_kind": "agent",
          "source_path": "string",
          "source_id": "string",
          "code": "parse_error",
          "message": "string",
          "details": {}
        }
      ],
      "errors": [
        {
          "kind": "source_file_diagnostic",
          "source_kind": "agent",
          "source_path": "string",
          "source_id": "string",
          "code": "parse_error",
          "message": "string",
          "details": {}
        }
      ]
    }
  }
}
```
