PostHog · Schema

TaskRunCommandRequest

JSON-RPC request to send a command to the agent server in the sandbox.

A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording

Properties

Name Type Description
jsonrpc object JSON-RPC version, must be '2.0' * `2.0` - 2.0
method object Command method to execute on the agent server * `user_message` - user_message * `cancel` - cancel * `close` - close * `permission_response` - permission_response * `set_config_option` - set_config_opt
params object Parameters for the command
id object Optional JSON-RPC request ID (string or number)
View JSON Schema on GitHub

JSON Schema

posthog-taskruncommandrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/TaskRunCommandRequest",
  "title": "TaskRunCommandRequest",
  "type": "object",
  "description": "JSON-RPC request to send a command to the agent server in the sandbox.",
  "properties": {
    "jsonrpc": {
      "allOf": [
        {
          "$ref": "#/components/schemas/JsonrpcEnum"
        }
      ],
      "description": "JSON-RPC version, must be '2.0'\n\n* `2.0` - 2.0"
    },
    "method": {
      "allOf": [
        {
          "$ref": "#/components/schemas/MethodEnum"
        }
      ],
      "description": "Command method to execute on the agent server\n\n* `user_message` - user_message\n* `cancel` - cancel\n* `close` - close\n* `permission_response` - permission_response\n* `set_config_option` - set_config_option"
    },
    "params": {
      "type": "object",
      "additionalProperties": true,
      "description": "Parameters for the command"
    },
    "id": {
      "description": "Optional JSON-RPC request ID (string or number)"
    }
  },
  "required": [
    "jsonrpc",
    "method"
  ]
}