{
  "namespace": "tabLocalAgent",
  "types": [
    {
      "id": "tabLocalAgent.RuntimeState",
      "type": "string",
      "enum": [
        "stopped",
        "starting",
        "ready",
        "failed"
      ]
    },
    {
      "id": "tabLocalAgent.BrowserAutomationState",
      "type": "string",
      "enum": [
        "available",
        "unsupported"
      ]
    },
    {
      "id": "tabLocalAgent.TaskEventType",
      "type": "string",
      "enum": [
        "started",
        "progress_update",
        "agent_message_started",
        "agent_message_delta",
        "agent_message_completed",
        "activity_update",
        "tool_status",
        "completed",
        "failed",
        "interrupted"
      ]
    },
    {
      "id": "tabLocalAgent.LocalMessageRole",
      "type": "string",
      "enum": [
        "user",
        "assistant"
      ]
    },
    {
      "id": "tabLocalAgent.LocalMessagePhase",
      "type": "string",
      "enum": [
        "commentary",
        "final_answer"
      ]
    },
    {
      "id": "tabLocalAgent.Status",
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "featureEnabled": {
          "type": "boolean"
        },
        "runtimeState": {
          "$ref": "tabLocalAgent.RuntimeState"
        },
        "runtimeReady": {
          "type": "boolean"
        },
        "inferenceReady": {
          "type": "boolean"
        },
        "supportsImages": {
          "type": "boolean"
        },
        "supportsTurnSteer": {
          "type": "boolean"
        },
        "supportsPromptEdit": {
          "type": "boolean"
        },
        "supportsSkillInputs": {
          "type": "boolean"
        },
        "supportsProjects": {
          "type": "boolean"
        },
        "fileActionCapabilities": {
          "type": "object",
          "optional": true,
          "properties": {
            "listOpenWithApps": {
              "type": "boolean"
            },
            "openWithApp": {
              "type": "boolean"
            },
            "openWith": {
              "type": "boolean"
            }
          }
        },
        "runtimeGeneration": {
          "type": "number"
        },
        "backgroundCommandState": {
          "type": "string",
          "optional": true
        },
        "browserAutomation": {
          "$ref": "tabLocalAgent.BrowserAutomationState"
        },
        "appServerPid": {
          "type": "integer",
          "optional": true
        },
        "runtimeError": {
          "type": "string",
          "optional": true
        },
        "inferenceError": {
          "type": "string",
          "optional": true
        },
        "error": {
          "type": "string",
          "optional": true
        },
        "workspaceDependencies": {
          "type": "object",
          "optional": true,
          "properties": {
            "phase": {
              "type": "string"
            },
            "version": {
              "type": "string"
            },
            "downloadedBytes": {
              "type": "number"
            },
            "totalBytes": {
              "type": "number"
            },
            "error": {
              "type": "string"
            }
          }
        }
      }
    },
    {
      "id": "tabLocalAgent.RuntimeStateChanged",
      "type": "object",
      "properties": {
        "runtimeState": {
          "$ref": "tabLocalAgent.RuntimeState"
        },
        "runtimeReady": {
          "type": "boolean"
        },
        "inferenceReady": {
          "type": "boolean"
        },
        "runtimeGeneration": {
          "type": "number"
        },
        "backgroundCommandState": {
          "type": "string",
          "optional": true
        },
        "runtimeError": {
          "type": "string",
          "optional": true
        },
        "inferenceError": {
          "type": "string",
          "optional": true
        },
        "error": {
          "type": "string",
          "optional": true
        }
      }
    },
    {
      "id": "tabLocalAgent.TaskEvent",
      "type": "object",
      "properties": {
        "taskId": {
          "type": "string"
        },
        "sequence": {
          "type": "number",
          "optional": true
        },
        "surfaceId": {
          "type": "string",
          "optional": true
        },
        "runtimeGeneration": {
          "type": "number",
          "optional": true
        },
        "threadId": {
          "type": "string"
        },
        "type": {
          "$ref": "tabLocalAgent.TaskEventType"
        },
        "delta": {
          "type": "string",
          "optional": true
        },
        "message": {
          "type": "string",
          "optional": true
        },
        "method": {
          "type": "string",
          "optional": true
        },
        "terminalReason": {
          "type": "string",
          "optional": true
        },
        "backgroundCommandState": {
          "type": "string",
          "optional": true
        },
        "details": {
          "type": "object",
          "optional": true,
          "additionalProperties": {
            "type": "any"
          }
        }
      }
    },
    {
      "id": "tabLocalAgent.ServerRequest",
      "type": "object",
      "properties": {
        "requestId": {
          "type": "string"
        },
        "method": {
          "type": "string"
        },
        "owned": {
          "type": "boolean",
          "optional": true
        },
        "surfaceId": {
          "type": "string",
          "optional": true
        },
        "params": {
          "type": "object",
          "optional": true,
          "additionalProperties": {
            "type": "any"
          }
        }
      }
    },
    {
      "id": "tabLocalAgent.ServerRequestResolved",
      "type": "object",
      "properties": {
        "requestId": {
          "type": "string"
        }
      }
    },
    {
      "id": "tabLocalAgent.PermissionMode",
      "type": "string",
      "enum": [
        "danger_full_access",
        "workspace_write",
        "auto_review",
        "read_only",
        "inherit"
      ]
    },
    {
      "id": "tabLocalAgent.TaskPermissionPreset",
      "type": "string",
      "enum": [
        "read_only",
        "project",
        "auto_review",
        "full_access",
        "advanced"
      ]
    },
    {
      "id": "tabLocalAgent.ReasoningVisibility",
      "type": "string",
      "enum": [
        "hidden",
        "summary",
        "full"
      ]
    },
    {
      "id": "tabLocalAgent.TaskSettings",
      "type": "object",
      "properties": {
        "workingDirectory": {
          "type": "string"
        },
        "permissionPreset": {
          "$ref": "tabLocalAgent.TaskPermissionPreset"
        },
        "permissionProfile": {
          "type": "string",
          "optional": true
        },
        "networkAccess": {
          "type": "boolean",
          "optional": true
        },
        "model": {
          "type": "string",
          "optional": true
        },
        "reasoningEffort": {
          "type": "string",
          "optional": true
        },
        "collaborationMode": {
          "type": "string",
          "optional": true
        },
        "serviceTier": {
          "type": "string",
          "optional": true
        },
        "personality": {
          "type": "string",
          "optional": true
        }
      }
    },
    {
      "id": "tabLocalAgent.TaskImageInput",
      "type": "object",
      "properties": {
        "attachmentId": {
          "type": "string"
        }
      }
    },
    {
      "id": "tabLocalAgent.TaskSkillInput",
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "path": {
          "type": "string"
        }
      }
    },
    {
      "id": "tabLocalAgent.TaskFileInput",
      "type": "object",
      "properties": {
        "attachmentId": {
          "type": "string"
        }
      }
    },
    {
      "id": "tabLocalAgent.SettingsPreferences",
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "model": {
          "type": "string"
        },
        "reasoningEffort": {
          "type": "string"
        },
        "reasoningVisibility": {
          "$ref": "tabLocalAgent.ReasoningVisibility"
        },
        "collaborationMode": {
          "type": "string"
        },
        "serviceTier": {
          "type": "string"
        },
        "personality": {
          "type": "string"
        },
        "permissionProfile": {
          "type": "string"
        },
        "permissionMode": {
          "$ref": "tabLocalAgent.PermissionMode"
        },
        "workingDirectory": {
          "type": "string"
        }
      }
    },
    {
      "id": "tabLocalAgent.ThreadSettingsUpdated",
      "type": "object",
      "properties": {
        "threadId": {
          "type": "string"
        },
        "threadSettings": {
          "type": "object",
          "additionalProperties": {
            "type": "any"
          }
        }
      }
    },
    {
      "id": "tabLocalAgent.AppsUpdated",
      "type": "object",
      "properties": {
        "data": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": {
              "type": "any"
            }
          }
        }
      }
    },
    {
      "id": "tabLocalAgent.LocalThreadSummary",
      "type": "object",
      "properties": {
        "threadId": {
          "type": "string"
        },
        "name": {
          "type": "string",
          "optional": true
        },
        "preview": {
          "type": "string"
        },
        "createdAt": {
          "type": "number"
        },
        "updatedAt": {
          "type": "number"
        }
      }
    },
    {
      "id": "tabLocalAgent.TurnTiming",
      "type": "object",
      "properties": {
        "startedAt": {
          "type": "number",
          "optional": true
        },
        "completedAt": {
          "type": "number",
          "optional": true
        },
        "durationMs": {
          "type": "number",
          "optional": true
        }
      }
    },
    {
      "id": "tabLocalAgent.LocalMessage",
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "turnId": {
          "type": "string",
          "optional": true
        },
        "turnTiming": {
          "$ref": "tabLocalAgent.TurnTiming",
          "optional": true
        },
        "clientUserMessageId": {
          "type": "string",
          "optional": true
        },
        "role": {
          "$ref": "tabLocalAgent.LocalMessageRole"
        },
        "content": {
          "type": "string"
        },
        "phase": {
          "$ref": "tabLocalAgent.LocalMessagePhase",
          "optional": true
        },
        "activity": {
          "type": "object",
          "optional": true,
          "additionalProperties": {
            "type": "any"
          }
        }
      }
    },
    {
      "id": "tabLocalAgent.LocalThread",
      "type": "object",
      "properties": {
        "threadId": {
          "type": "string"
        },
        "name": {
          "type": "string",
          "optional": true
        },
        "preview": {
          "type": "string"
        },
        "createdAt": {
          "type": "number"
        },
        "updatedAt": {
          "type": "number"
        },
        "messages": {
          "type": "array",
          "items": {
            "$ref": "tabLocalAgent.LocalMessage"
          }
        }
      }
    }
  ],
  "functions": [
    {
      "name": "openProject",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "projectId": {
              "type": "string"
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "additionalProperties": {
              "type": "any"
            }
          }
        ]
      }
    },
    {
      "name": "openTaskInProject",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "projectId": {
              "type": "string"
            },
            "taskId": {
              "type": "string"
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "additionalProperties": {
              "type": "any"
            }
          }
        ]
      }
    },
    {
      "name": "newTaskInProject",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "projectId": {
              "type": "string"
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "additionalProperties": {
              "type": "any"
            }
          }
        ]
      }
    },
    {
      "name": "openProjectDirectory",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "projectId": {
              "type": "string"
            },
            "inSystem": {
              "type": "boolean",
              "optional": true
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "additionalProperties": {
              "type": "any"
            }
          }
        ]
      }
    },
    {
      "name": "fileAction",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "taskId": {
              "type": "string"
            },
            "path": {
              "type": "string",
              "optional": true
            },
            "attachmentId": {
              "type": "string",
              "optional": true
            },
            "action": {
              "type": "string"
            },
            "appPath": {
              "type": "string",
              "optional": true
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "additionalProperties": {
              "type": "any"
            }
          }
        ]
      }
    },
    {
      "name": "ensureDefaultProject",
      "type": "function",
      "parameters": [],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "additionalProperties": {
              "type": "any"
            }
          }
        ]
      }
    },
    {
      "name": "selectProject",
      "type": "function",
      "parameters": [],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "additionalProperties": {
              "type": "any"
            }
          }
        ]
      }
    },
    {
      "name": "ensureProject",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "path": {
              "type": "string"
            },
            "displayName": {
              "type": "string",
              "optional": true
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "additionalProperties": {
              "type": "any"
            }
          }
        ]
      }
    },
    {
      "name": "listProjects",
      "type": "function",
      "parameters": [],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "additionalProperties": {
              "type": "any"
            }
          }
        ]
      }
    },
    {
      "name": "updateProject",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "projectId": {
              "type": "string"
            },
            "displayName": {
              "type": "string",
              "optional": true
            },
            "pinned": {
              "type": "boolean",
              "optional": true
            },
            "color": {
              "type": "string",
              "optional": true
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "additionalProperties": {
              "type": "any"
            }
          }
        ]
      }
    },
    {
      "name": "listTasks",
      "type": "function",
      "parameters": [],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "additionalProperties": {
              "type": "any"
            }
          }
        ]
      }
    },
    {
      "name": "putTask",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "task": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "projectId": {
                  "type": "string",
                  "optional": true
                },
                "title": {
                  "type": "string",
                  "optional": true
                },
                "threadId": {
                  "type": "string",
                  "optional": true
                },
                "settings": {
                  "type": "object",
                  "optional": true,
                  "additionalProperties": {
                    "type": "any"
                  }
                }
              },
              "additionalProperties": {
                "type": "any"
              }
            },
            "createOnly": {
              "type": "boolean",
              "optional": true
            },
            "firstSend": {
              "type": "boolean",
              "optional": true
            },
            "importExisting": {
              "type": "boolean",
              "optional": true
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "additionalProperties": {
              "type": "any"
            }
          }
        ]
      }
    },
    {
      "name": "archiveTask",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "taskId": {
              "type": "string"
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "additionalProperties": {
              "type": "any"
            }
          }
        ]
      }
    },
    {
      "name": "restoreTask",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "taskId": {
              "type": "string"
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "additionalProperties": {
              "type": "any"
            }
          }
        ]
      }
    },
    {
      "name": "getTaskSnapshot",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "taskId": {
              "type": "string"
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "additionalProperties": {
              "type": "any"
            }
          }
        ]
      }
    },
    {
      "name": "getStatus",
      "type": "function",
      "parameters": [],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "status",
            "$ref": "tabLocalAgent.Status"
          }
        ]
      }
    },
    {
      "name": "createManagedWorkspace",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "workspace",
            "type": "object",
            "properties": {
              "path": {
                "type": "string"
              },
              "displayName": {
                "type": "string"
              }
            }
          }
        ]
      }
    },
    {
      "name": "listLocalThreads",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "optional": true,
          "properties": {
            "cursor": {
              "type": "string",
              "optional": true
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "properties": {
              "threads": {
                "type": "array",
                "items": {
                  "$ref": "tabLocalAgent.LocalThreadSummary"
                }
              },
              "nextCursor": {
                "type": "string",
                "optional": true
              }
            }
          }
        ]
      }
    },
    {
      "name": "readLocalThread",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "threadId": {
              "type": "string"
            },
            "workingDirectory": {
              "type": "string",
              "optional": true
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "thread",
            "$ref": "tabLocalAgent.LocalThread"
          }
        ]
      }
    },
    {
      "name": "createLocalThread",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "optional": true,
          "properties": {
            "surfaceId": {
              "type": "string",
              "optional": true
            },
            "taskId": {
              "type": "string",
              "optional": true
            },
            "settings": {
              "$ref": "tabLocalAgent.TaskSettings",
              "optional": true
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "properties": {
              "threadId": {
                "type": "string"
              }
            }
          }
        ]
      }
    },
    {
      "name": "persistFileAttachment",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "data": {
              "type": "binary"
            },
            "fileName": {
              "type": "string"
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "properties": {
              "attachmentId": {
                "type": "string"
              }
            }
          }
        ]
      }
    },
    {
      "name": "resolveDroppedFileAttachment",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "fileSystemName": {
              "type": "string"
            },
            "fileSystemPath": {
              "type": "string"
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "properties": {
              "attachmentId": {
                "type": "string"
              }
            }
          }
        ]
      }
    },
    {
      "name": "resolveClipboardFileAttachment",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "fileName": {
              "type": "string"
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "properties": {
              "attachmentId": {
                "type": "string"
              }
            }
          }
        ]
      }
    },
    {
      "name": "releaseFileAttachment",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "attachmentId": {
              "type": "string"
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "released",
            "type": "boolean"
          }
        ]
      }
    },
    {
      "name": "persistImageAttachment",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "data": {
              "type": "binary"
            },
            "mimeType": {
              "type": "string"
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "properties": {
              "attachmentId": {
                "type": "string"
              }
            }
          }
        ]
      }
    },
    {
      "name": "releaseImageAttachment",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "attachmentId": {
              "type": "string"
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "released",
            "type": "boolean"
          }
        ]
      }
    },
    {
      "name": "startTask",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "surfaceId": {
              "type": "string",
              "optional": true
            },
            "threadId": {
              "type": "string"
            },
            "expectedTurnId": {
              "type": "string",
              "optional": true
            },
            "clientMessageId": {
              "type": "string"
            },
            "text": {
              "type": "string"
            },
            "images": {
              "type": "array",
              "items": {
                "$ref": "tabLocalAgent.TaskImageInput"
              },
              "optional": true
            },
            "files": {
              "type": "array",
              "items": {
                "$ref": "tabLocalAgent.TaskFileInput"
              },
              "optional": true
            },
            "skills": {
              "type": "array",
              "items": {
                "$ref": "tabLocalAgent.TaskSkillInput"
              },
              "optional": true
            },
            "settings": {
              "$ref": "tabLocalAgent.TaskSettings",
              "optional": true
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "properties": {
              "taskId": {
                "type": "string"
              },
              "turnTiming": {
                "$ref": "tabLocalAgent.TurnTiming",
                "optional": true
              }
            }
          }
        ]
      }
    },
    {
      "name": "interruptTask",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "taskId": {
              "type": "string"
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "interrupted",
            "type": "boolean"
          }
        ]
      }
    },
    {
      "name": "listPendingServerRequests",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "surfaceId": {
              "type": "string"
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "requests",
            "type": "array",
            "items": {
              "$ref": "tabLocalAgent.ServerRequest"
            }
          }
        ]
      }
    },
    {
      "name": "respondToServerRequest",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "surfaceId": {
              "type": "string"
            },
            "requestId": {
              "type": "string"
            },
            "result": {
              "type": "object",
              "additionalProperties": {
                "type": "any"
              }
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "accepted",
            "type": "boolean"
          }
        ]
      }
    },
    {
      "name": "getSettingsPreferences",
      "type": "function",
      "parameters": [],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "preferences",
            "$ref": "tabLocalAgent.SettingsPreferences"
          }
        ]
      }
    },
    {
      "name": "updateSettingsPreferences",
      "type": "function",
      "parameters": [
        {
          "name": "updates",
          "type": "object",
          "properties": {
            "enabled": {
              "type": "boolean",
              "optional": true
            },
            "model": {
              "type": "string",
              "optional": true
            },
            "reasoningEffort": {
              "type": "string",
              "optional": true
            },
            "reasoningVisibility": {
              "$ref": "tabLocalAgent.ReasoningVisibility",
              "optional": true
            },
            "collaborationMode": {
              "type": "string",
              "optional": true
            },
            "serviceTier": {
              "type": "string",
              "optional": true
            },
            "personality": {
              "type": "string",
              "optional": true
            },
            "permissionProfile": {
              "type": "string",
              "optional": true
            },
            "permissionMode": {
              "type": "string",
              "optional": true
            },
            "workingDirectory": {
              "type": "string",
              "optional": true
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "preferences",
            "$ref": "tabLocalAgent.SettingsPreferences"
          }
        ]
      }
    },
    {
      "name": "getSettingsCatalog",
      "type": "function",
      "parameters": [],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "catalog",
            "type": "object",
            "additionalProperties": {
              "type": "any"
            }
          }
        ]
      }
    },
    {
      "name": "reloadUserConfig",
      "type": "function",
      "parameters": [],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "properties": {
              "accepted": {
                "type": "boolean"
              },
              "version": {
                "type": "string",
                "optional": true
              }
            }
          }
        ]
      }
    },
    {
      "name": "getAccountUsage",
      "type": "function",
      "parameters": [],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "properties": {
              "account": {
                "type": "object",
                "additionalProperties": {
                  "type": "any"
                }
              },
              "rateLimits": {
                "type": "object",
                "additionalProperties": {
                  "type": "any"
                }
              },
              "usage": {
                "type": "object",
                "additionalProperties": {
                  "type": "any"
                }
              }
            }
          }
        ]
      }
    },
    {
      "name": "renameLocalThread",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "threadId": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "workingDirectory": {
              "type": "string",
              "optional": true
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "accepted",
            "type": "boolean"
          }
        ]
      }
    },
    {
      "name": "forkLocalThread",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "threadId": {
              "type": "string"
            },
            "workingDirectory": {
              "type": "string",
              "optional": true
            },
            "taskId": {
              "type": "string",
              "optional": true
            },
            "beforeTurnId": {
              "type": "string",
              "optional": true
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "properties": {
              "threadId": {
                "type": "string"
              }
            }
          }
        ]
      }
    },
    {
      "name": "archiveLocalThread",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "threadId": {
              "type": "string"
            },
            "workingDirectory": {
              "type": "string",
              "optional": true
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "accepted",
            "type": "boolean"
          }
        ]
      }
    },
    {
      "name": "deleteLocalThread",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "threadId": {
              "type": "string"
            },
            "workingDirectory": {
              "type": "string",
              "optional": true
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "accepted",
            "type": "boolean"
          }
        ]
      }
    },
    {
      "name": "getExperimentalFeatures",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "optional": true,
          "properties": {
            "threadId": {
              "type": "string",
              "optional": true
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "additionalProperties": {
              "type": "any"
            }
          }
        ]
      }
    },
    {
      "name": "setExperimentalFeature",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "enabled": {
              "type": "boolean"
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "accepted",
            "type": "boolean"
          }
        ]
      }
    },
    {
      "name": "getMcpServerStatus",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "optional": true,
          "properties": {
            "threadId": {
              "type": "string",
              "optional": true
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "additionalProperties": {
              "type": "any"
            }
          }
        ]
      }
    },
    {
      "name": "getSkills",
      "type": "function",
      "parameters": [],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "additionalProperties": {
              "type": "any"
            }
          }
        ]
      }
    },
    {
      "name": "getApps",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "optional": true,
          "properties": {
            "threadId": {
              "type": "string",
              "optional": true
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "additionalProperties": {
              "type": "any"
            }
          }
        ]
      }
    },
    {
      "name": "getRuntimeDiagnostics",
      "type": "function",
      "parameters": [],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "result",
            "type": "object",
            "additionalProperties": {
              "type": "any"
            }
          }
        ]
      }
    },
    {
      "name": "updateThreadSettings",
      "type": "function",
      "parameters": [
        {
          "name": "options",
          "type": "object",
          "properties": {
            "threadId": {
              "type": "string"
            },
            "settings": {
              "type": "object",
              "additionalProperties": {
                "type": "any"
              }
            }
          }
        }
      ],
      "returns_async": {
        "name": "callback",
        "parameters": [
          {
            "name": "accepted",
            "type": "boolean"
          }
        ]
      }
    }
  ],
  "events": [
    {
      "name": "onIndexChanged",
      "type": "function",
      "parameters": [
        {
          "name": "event",
          "type": "object",
          "additionalProperties": {
            "type": "any"
          }
        }
      ]
    },
    {
      "name": "onRuntimeStateChanged",
      "type": "function",
      "parameters": [
        {
          "name": "state",
          "$ref": "tabLocalAgent.RuntimeStateChanged"
        }
      ]
    },
    {
      "name": "onTaskEvent",
      "type": "function",
      "parameters": [
        {
          "name": "event",
          "$ref": "tabLocalAgent.TaskEvent"
        }
      ]
    },
    {
      "name": "onServerRequest",
      "type": "function",
      "parameters": [
        {
          "name": "request",
          "$ref": "tabLocalAgent.ServerRequest"
        }
      ]
    },
    {
      "name": "onServerRequestResolved",
      "type": "function",
      "parameters": [
        {
          "name": "resolved",
          "$ref": "tabLocalAgent.ServerRequestResolved"
        }
      ]
    },
    {
      "name": "onThreadSettingsUpdated",
      "type": "function",
      "parameters": [
        {
          "name": "updated",
          "$ref": "tabLocalAgent.ThreadSettingsUpdated"
        }
      ]
    },
    {
      "name": "onAppsUpdated",
      "type": "function",
      "parameters": [
        {
          "name": "updated",
          "$ref": "tabLocalAgent.AppsUpdated"
        }
      ]
    }
  ]
}