Omnara · Schema

WorktreeDescriptor

Serialized worktree entity returned to API clients.

Artificial IntelligenceAgentsOpen SourcePlatformAutomation

Properties

Name Type Description
id string Unique worktree identifier
workspace_id string Parent workspace identifier
name object Worktree name (null for the main worktree)
is_main boolean Whether this is the main/default worktree for the workspace
path object Filesystem path for the worktree on the machine
worktree_type object Type of worktree: LOCAL (user machine) or REMOTE (sandbox)
user_machine_path object Machine+path link when worktree_type is LOCAL
managed_machine_id object Managed machine ID if worktree_type is REMOTE
last_heartbeat_at object Most recent liveness heartbeat received from the sandbox container (REMOTE only).
last_synced_checkpoint_id object ID of the last checkpoint that was successfully synced to cloud storage. This may differ from current_checkpoint_id if a recent checkpoint failed to sync.
checkpoint_restore_pending boolean Whether a checkpoint needs to be restored on next local session start
current_checkpoint_id object Identifier of the current checkpoint for this worktree
checkpoint_metadata object Metadata associated with the current checkpoint (e.g., commit info)
created_at string Timestamp when the worktree was created
updated_at string Timestamp when the worktree was last updated
View JSON Schema on GitHub

JSON Schema

omnara-com-worktree-descriptor-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/omnara-com/json-schema/omnara-com-worktree-descriptor-schema.json",
  "title": "WorktreeDescriptor",
  "description": "Serialized worktree entity returned to API clients.",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/omnara-com-openapi.json#/components/schemas/WorktreeDescriptor",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id",
      "description": "Unique worktree identifier"
    },
    "workspace_id": {
      "type": "string",
      "title": "Workspace Id",
      "description": "Parent workspace identifier"
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name",
      "description": "Worktree name (null for the main worktree)"
    },
    "is_main": {
      "type": "boolean",
      "title": "Is Main",
      "description": "Whether this is the main/default worktree for the workspace"
    },
    "path": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Path",
      "description": "Filesystem path for the worktree on the machine"
    },
    "worktree_type": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "LOCAL",
            "REMOTE"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Worktree Type",
      "description": "Type of worktree: LOCAL (user machine) or REMOTE (sandbox)"
    },
    "user_machine_path": {
      "anyOf": [
        {
          "$ref": "#/$defs/shared__schemas__worktree__UserMachinePathDescriptor"
        },
        {
          "type": "null"
        }
      ],
      "description": "Machine+path link when worktree_type is LOCAL"
    },
    "managed_machine_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Managed Machine Id",
      "description": "Managed machine ID if worktree_type is REMOTE"
    },
    "last_heartbeat_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Heartbeat At",
      "description": "Most recent liveness heartbeat received from the sandbox container (REMOTE only)."
    },
    "last_synced_checkpoint_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Synced Checkpoint Id",
      "description": "ID of the last checkpoint that was successfully synced to cloud storage. This may differ from current_checkpoint_id if a recent checkpoint failed to sync."
    },
    "checkpoint_restore_pending": {
      "type": "boolean",
      "title": "Checkpoint Restore Pending",
      "description": "Whether a checkpoint needs to be restored on next local session start",
      "default": false
    },
    "current_checkpoint_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Current Checkpoint Id",
      "description": "Identifier of the current checkpoint for this worktree"
    },
    "checkpoint_metadata": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Checkpoint Metadata",
      "description": "Metadata associated with the current checkpoint (e.g., commit info)"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At",
      "description": "Timestamp when the worktree was created"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At",
      "description": "Timestamp when the worktree was last updated"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "id",
    "workspace_id",
    "is_main",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "shared__schemas__worktree__UserMachinePathDescriptor": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "machine_id": {
          "type": "string",
          "title": "Machine Id"
        },
        "local_path": {
          "type": "string",
          "title": "Local Path"
        }
      },
      "type": "object",
      "required": [
        "id",
        "machine_id",
        "local_path"
      ],
      "title": "UserMachinePathDescriptor",
      "description": "Machine path information associated with a LOCAL worktree."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/omnara-com-worktree-descriptor"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.