# Resolve and pin dependencies

Tool: `veryfront__resolve_project_dependencies`

Resolve dependency pins. Requires project.files.write.

## Arguments

| Name                    | Type                                            | Required | Description                                                                                                                                                       |
| ----------------------- | ----------------------------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference`     | string · min length 1                           |          | Project UUID or slug. May be omitted when connected through a project-scoped MCP endpoint.                                                                        |
| `branch`                | string · min length 1 · max length 255          |          | Branch UUID or name; omit for main. 1-255 characters without surrounding whitespace.                                                                              |
| `specifiers`            | array of string · min length 1 · max length 200 | Yes      | 1-100 npm specifiers of 1-200 characters: bare name, exact version or semver range. Pin exact versions in package.json after adding imports or packages.          |
| `expected_declarations` | object                                          |          | Observed declarations; at most 100 entries of up to 200 characters. Every requested package must be present; null means absent. Changed declarations are skipped. |
| `confirm`               | boolean                                         | Yes      | Must be true to confirm writing resolved pins to package.json.                                                                                                    |

## 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__resolve_project_dependencies",
    "arguments": {
      "specifiers": [
        "string"
      ],
      "confirm": false
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"pins\":{},\"persisted\":false,\"skipped\":{}}"
      }
    ],
    "structuredContent": {
      "pins": {},
      "persisted": false,
      "skipped": {}
    }
  }
}
```
