Write sandbox files

veryfront__write_sandbox_files

Requires project.sandboxes.manage.

Access

No external-service connection is required. Use a Veryfront credential with access to the requested resources.

Call type: Can change resources.

Arguments

FieldTypeRequiredDescription and constraints
sandbox_idstringYesSandbox UUID, as returned by createSandbox. Format: uuid.
filesobject[]YesSandbox filesystem writes; project files and Yjs document state are unchanged.

Example request

Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__write_sandbox_files",
    "arguments": {
      "sandbox_id": "00000000-0000-4000-8000-000000000000",
      "files": []
    }
  }
}

Result

The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.

FieldTypeRequiredDescription and constraints
resultsobject[]YesList of results associated with this tool result.

Full schemas

json
{
  "type": "object",
  "properties": {
    "sandbox_id": {
      "type": "string",
      "format": "uuid",
      "description": "Sandbox UUID, as returned by createSandbox."
    },
    "files": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "description": "Provide the path."
          },
          "content": {
            "type": "string",
            "description": "Source content or body supplied to the tool."
          }
        },
        "required": [
          "path",
          "content"
        ],
        "additionalProperties": false,
        "description": "One file item supplied to the tool."
      },
      "description": "Sandbox filesystem writes; project files and Yjs document state are unchanged."
    }
  },
  "required": [
    "sandbox_id",
    "files"
  ],
  "additionalProperties": false,
  "description": "Arguments for the write_sandbox_files tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}
json
{
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "written",
              "failed"
            ],
            "description": "Lifecycle status for the returned record."
          },
          "error": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  }
                },
                "required": [
                  "code",
                  "message"
                ],
                "additionalProperties": false,
                "description": "Error details returned by the tool."
              },
              {
                "type": "null",
                "description": "Error details returned by the tool."
              }
            ],
            "description": "Error details returned by the tool."
          }
        },
        "required": [
          "path",
          "status",
          "error"
        ],
        "additionalProperties": false
      },
      "description": "List of results associated with this tool result."
    }
  },
  "required": [
    "results"
  ],
  "additionalProperties": false,
  "description": "Structured result returned by the write_sandbox_files tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}