# Get project resource

Tool: `veryfront__get_project_resource`

Read one project resource by its ID to inspect its URI pattern, title and description; returns the project resource. Requires project.resources.read.

## Arguments

| Name                    | Type                  | Required | Description                                                                                       |
| ----------------------- | --------------------- | -------- | ------------------------------------------------------------------------------------------------- |
| `project_reference`     | string                |          | Project ID or slug                                                                                |
| `resource_id`           | string                | Yes      | Resource ID from list\_project\_resources                                                         |
| `runtime_target_kind`   | string \| null        |          | Provide the runtime target kind.                                                                  |
| `target_environment_id` | string · uuid \| null |          | Provide the target environment id.                                                                |
| `target_branch_id`      | string · uuid \| null |          | Provide the target branch id.                                                                     |
| `source_target_kind`    | string                |          | Provide the source target kind. 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__get_project_resource",
    "arguments": {
      "resource_id": "string"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"id\":\"string\",\"pattern\":\"string\",\"description\":\"string\",\"title\":\"string\",\"source_path\":\"string\",\"edit_mode\":\"structured\"}"
      }
    ],
    "structuredContent": {
      "id": "string",
      "pattern": "string",
      "description": "string",
      "title": "string",
      "source_path": "string",
      "edit_mode": "structured"
    }
  }
}
```
