# Write sandbox files

Tool: `veryfront__write_sandbox_files`

Write sandbox files. Requires project.sandboxes.manage.

## Arguments

| Name         | Type            | Required | Description                                                                    |
| ------------ | --------------- | -------- | ------------------------------------------------------------------------------ |
| `sandbox_id` | string · uuid   | Yes      | Sandbox UUID, as returned by createSandbox.                                    |
| `files`      | array of object | Yes      | Sandbox filesystem writes; project files and Yjs document state are unchanged. |

## 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__write_sandbox_files",
    "arguments": {
      "sandbox_id": "00000000-0000-0000-0000-000000000000",
      "files": []
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"results\":[{\"path\":\"string\",\"status\":\"written\",\"error\":{\"code\":\"string\",\"message\":\"string\"}}]}"
      }
    ],
    "structuredContent": {
      "results": [
        {
          "path": "string",
          "status": "written",
          "error": {
            "code": "string",
            "message": "string"
          }
        }
      ]
    }
  }
}
```
