Plandex · JSON Structure

Plandex Server Context Item Structure

Plandex context item structure. Describes a single loaded source in a plan branch's working context.

Type: object Properties: 12
AIAI Coding AgentDeveloper ToolsOpen SourceCLITerminalLLMCoding AssistantAgentsGoContext ManagementPlansSelf-HostedREST

ContextItem is a JSON Structure definition published by Plandex, describing 12 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id planId branch name type path body tokens tokensCached imageDetail addedAt updatedAt

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/plandex/main/json-structure/plandex-server-context-item-structure.json",
  "name": "ContextItem",
  "description": "Plandex context item structure. Describes a single loaded source in a plan branch's working context.",
  "type": "object",
  "properties": {
    "id": {"type": "string"},
    "planId": {"type": "string"},
    "branch": {"type": "string"},
    "name": {"type": "string"},
    "type": {"type": "string", "enum": ["file", "directoryTree", "directoryMap", "url", "note", "image", "pipedData"]},
    "path": {"type": "string"},
    "body": {"type": "string", "optional": true},
    "tokens": {"type": "int64"},
    "tokensCached": {"type": "boolean"},
    "imageDetail": {"type": "string", "optional": true, "enum": ["high", "low"]},
    "addedAt": {"type": "datetime"},
    "updatedAt": {"type": "datetime"}
  }
}