Update sandbox lifetime

Update sandbox lifetime. Requires project.sandboxes.manage.

Arguments

  • sandbox_idstring · uuidrequired

    Sandbox UUID, as returned by createSandbox.

  • ttl_modestringrequired

    Sandbox lifetime policy. default uses the platform’s idle and maximum lifetime limits. One of default, duration, always_on.

  • ttl_hoursinteger · max 24

    Required when ttl_mode is duration. Number of hours before cleanup, up to 24.

Responses

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__update_sandbox_lifetime",    "arguments": {      "sandbox_id": "00000000-0000-0000-0000-000000000000",      "ttl_mode": "default"    }  }}'
{  "jsonrpc": "2.0",  "id": 1,  "result": {    "content": [      {        "type": "text",        "text": "{\"id\":\"00000000-0000-0000-0000-000000000000\",\"short_id\":\"string\",\"endpoint\":\"string\",\"status\":\"pending\",\"project_id\":\"00000000-0000-0000-0000-000000000000\",\"run_id\":\"00000000-0000-0000-0000-000000000000\",\"stopped_at\":\"string\",\"access_scope\":\"project\",\"workspace_storage\":\"ephemeral\",\"ttl_mode\":\"default\",\"ttl_hours\":1,\"expires_at\":\"string\",\"created_at\":\"string\",\"last_activity_at\":\"string\",\"variable_snapshot\":{\"source_environment_id\":\"00000000-0000-0000-0000-000000000000\",\"variable_count\":0,\"copied_at\":\"string\"}}"      }    ],    "structuredContent": {      "id": "00000000-0000-0000-0000-000000000000",      "short_id": "string",      "endpoint": "string",      "status": "pending",      "project_id": "00000000-0000-0000-0000-000000000000",      "run_id": "00000000-0000-0000-0000-000000000000",      "stopped_at": "string",      "access_scope": "project",      "workspace_storage": "ephemeral",      "ttl_mode": "default",      "ttl_hours": 1,      "expires_at": "string",      "created_at": "string",      "last_activity_at": "string",      "variable_snapshot": {        "source_environment_id": "00000000-0000-0000-0000-000000000000",        "variable_count": 0,        "copied_at": "string"      }    }  }}

The tool ran; its output is result.structuredContent.