{
  "name": "CreateTaskRun",
  "fully_qualified_name": "PosthogApi.CreateTaskRun@0.1.0",
  "description": "Create and manage execution of a specific task by ID.\n\nUse this tool to initiate a run for a specific task within a project on Datadog. It's useful for managing task executions when you need to automate or monitor tasks.",
  "toolkit": {
    "name": "ArcadePosthogApi",
    "description": null,
    "version": "0.1.0"
  },
  "input": {
    "parameters": [
      {
        "name": "project_id",
        "required": true,
        "description": "The ID of the project to access. Use /api/projects/ to retrieve project IDs.",
        "value_schema": {
          "val_type": "string",
          "inner_val_type": null,
          "enum": null,
          "properties": null,
          "inner_properties": null,
          "description": "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."
        },
        "inferrable": true,
        "http_endpoint_parameter_name": "project_id"
      },
      {
        "name": "task_id",
        "required": true,
        "description": "The identifier for the specific task to run within the project. Ensure it matches the correct task you intend to execute.",
        "value_schema": {
          "val_type": "string",
          "inner_val_type": null,
          "enum": null,
          "properties": null,
          "inner_properties": null,
          "description": ""
        },
        "inferrable": true,
        "http_endpoint_parameter_name": "task_id"
      },
      {
        "name": "task_run_details",
        "required": false,
        "description": "JSON object defining the task run details, including stage, branch, status, logs, and more.",
        "value_schema": {
          "val_type": "json",
          "inner_val_type": null,
          "enum": null,
          "properties": {
            "id": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": null
            },
            "task": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": null
            },
            "stage": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": "Current stage for this run (e.g., 'backlog', 'in_progress', 'done')"
            },
            "branch": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": "Branch name for the run"
            },
            "status": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": [
                "started",
                "in_progress",
                "completed",
                "failed"
              ],
              "properties": null,
              "inner_properties": null,
              "description": "* `started` - Started\n* `in_progress` - In Progress\n* `completed` - Completed\n* `failed` - Failed"
            },
            "log": {
              "val_type": "json",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": "Live output from Claude Code execution"
            },
            "error_message": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": "Error message if execution failed"
            },
            "output": {
              "val_type": "json",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": "Run output data (e.g., PR URL, commit SHA, etc.)"
            },
            "state": {
              "val_type": "json",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": "Run state data for resuming or tracking execution state"
            },
            "created_at": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": null
            },
            "updated_at": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": null
            },
            "completed_at": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": null
            }
          },
          "inner_properties": null,
          "description": ""
        },
        "inferrable": true,
        "http_endpoint_parameter_name": "requestBody"
      }
    ]
  },
  "output": {
    "description": "Response from the API endpoint 'tasks_runs_create'.",
    "available_modes": [
      "value",
      "error",
      "null"
    ],
    "value_schema": {
      "val_type": "json",
      "inner_val_type": null,
      "enum": null,
      "properties": null,
      "inner_properties": null,
      "description": null
    }
  },
  "requirements": {
    "authorization": null,
    "secrets": [
      {
        "key": "POSTHOG_SERVER_URL"
      },
      {
        "key": "POSTHOG_PERSONAL_API_KEY"
      }
    ],
    "metadata": null
  },
  "deprecation_message": null,
  "metadata": {
    "object_type": "api_wrapper_tool",
    "version": "1.1.0",
    "description": "Tools that enable LLMs to interact directly with the Datadog API."
  },
  "http_endpoint": {
    "metadata": {
      "object_type": "http_endpoint",
      "version": "1.2.0",
      "description": ""
    },
    "url": "{posthog_server_url}/api/projects/{project_id}/tasks/{task_id}/runs/",
    "http_method": "POST",
    "headers": {},
    "parameters": [
      {
        "name": "project_id",
        "tool_parameter_name": "project_id",
        "description": "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.",
        "value_schema": {
          "val_type": "string",
          "inner_val_type": null,
          "enum": null,
          "properties": null,
          "inner_properties": null,
          "description": "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."
        },
        "accepted_as": "path",
        "required": true,
        "deprecated": false,
        "default": null,
        "documentation_urls": []
      },
      {
        "name": "task_id",
        "tool_parameter_name": "task_id",
        "description": "",
        "value_schema": {
          "val_type": "string",
          "inner_val_type": null,
          "enum": null,
          "properties": null,
          "inner_properties": null,
          "description": ""
        },
        "accepted_as": "path",
        "required": true,
        "deprecated": false,
        "default": null,
        "documentation_urls": []
      },
      {
        "name": "requestBody",
        "tool_parameter_name": "task_run_details",
        "description": "",
        "value_schema": {
          "val_type": "json",
          "inner_val_type": null,
          "enum": null,
          "properties": {
            "id": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": null
            },
            "task": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": null
            },
            "stage": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": "Current stage for this run (e.g., 'backlog', 'in_progress', 'done')"
            },
            "branch": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": "Branch name for the run"
            },
            "status": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": [
                "started",
                "in_progress",
                "completed",
                "failed"
              ],
              "properties": null,
              "inner_properties": null,
              "description": "* `started` - Started\n* `in_progress` - In Progress\n* `completed` - Completed\n* `failed` - Failed"
            },
            "log": {
              "val_type": "json",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": "Live output from Claude Code execution"
            },
            "error_message": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": "Error message if execution failed"
            },
            "output": {
              "val_type": "json",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": "Run output data (e.g., PR URL, commit SHA, etc.)"
            },
            "state": {
              "val_type": "json",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": "Run state data for resuming or tracking execution state"
            },
            "created_at": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": null
            },
            "updated_at": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": null
            },
            "completed_at": {
              "val_type": "string",
              "inner_val_type": null,
              "enum": null,
              "properties": null,
              "inner_properties": null,
              "description": null
            }
          },
          "inner_properties": null,
          "description": ""
        },
        "accepted_as": "body",
        "required": false,
        "deprecated": false,
        "default": null,
        "documentation_urls": []
      }
    ],
    "documentation_urls": [],
    "secrets": [
      {
        "arcade_key": "POSTHOG_SERVER_URL",
        "parameter_name": "posthog_server_url",
        "accepted_as": "path",
        "formatted_value": null,
        "description": "",
        "is_auth_token": false
      },
      {
        "arcade_key": "POSTHOG_PERSONAL_API_KEY",
        "parameter_name": "Authorization",
        "accepted_as": "header",
        "formatted_value": "Bearer {authorization}",
        "description": "",
        "is_auth_token": false
      }
    ],
    "request_body_spec": "{\n  \"content\": {\n    \"application/json\": {\n      \"schema\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"id\": {\n            \"type\": \"string\",\n            \"format\": \"uuid\",\n            \"readOnly\": true\n          },\n          \"task\": {\n            \"type\": \"string\",\n            \"format\": \"uuid\",\n            \"readOnly\": true\n          },\n          \"stage\": {\n            \"type\": \"string\",\n            \"nullable\": true,\n            \"description\": \"Current stage for this run (e.g., 'backlog', 'in_progress', 'done')\",\n            \"maxLength\": 100\n          },\n          \"branch\": {\n            \"type\": \"string\",\n            \"nullable\": true,\n            \"description\": \"Branch name for the run\",\n            \"maxLength\": 255\n          },\n          \"status\": {\n            \"enum\": [\n              \"started\",\n              \"in_progress\",\n              \"completed\",\n              \"failed\"\n            ],\n            \"type\": \"string\",\n            \"description\": \"* `started` - Started\\n* `in_progress` - In Progress\\n* `completed` - Completed\\n* `failed` - Failed\"\n          },\n          \"log\": {\n            \"description\": \"Live output from Claude Code execution\"\n          },\n          \"error_message\": {\n            \"type\": \"string\",\n            \"nullable\": true,\n            \"description\": \"Error message if execution failed\"\n          },\n          \"output\": {\n            \"nullable\": true,\n            \"description\": \"Run output data (e.g., PR URL, commit SHA, etc.)\"\n          },\n          \"state\": {\n            \"description\": \"Run state data for resuming or tracking execution state\"\n          },\n          \"created_at\": {\n            \"type\": \"string\",\n            \"format\": \"date-time\",\n            \"readOnly\": true\n          },\n          \"updated_at\": {\n            \"type\": \"string\",\n            \"format\": \"date-time\",\n            \"readOnly\": true\n          },\n          \"completed_at\": {\n            \"type\": \"string\",\n            \"format\": \"date-time\",\n            \"readOnly\": true,\n            \"nullable\": true\n          }\n        },\n        \"required\": [\n          \"completed_at\",\n          \"created_at\",\n          \"id\",\n          \"task\",\n          \"updated_at\"\n        ]\n      }\n    },\n    \"application/x-www-form-urlencoded\": {\n      \"schema\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"id\": {\n            \"type\": \"string\",\n            \"format\": \"uuid\",\n            \"readOnly\": true\n          },\n          \"task\": {\n            \"type\": \"string\",\n            \"format\": \"uuid\",\n            \"readOnly\": true\n          },\n          \"stage\": {\n            \"type\": \"string\",\n            \"nullable\": true,\n            \"description\": \"Current stage for this run (e.g., 'backlog', 'in_progress', 'done')\",\n            \"maxLength\": 100\n          },\n          \"branch\": {\n            \"type\": \"string\",\n            \"nullable\": true,\n            \"description\": \"Branch name for the run\",\n            \"maxLength\": 255\n          },\n          \"status\": {\n            \"enum\": [\n              \"started\",\n              \"in_progress\",\n              \"completed\",\n              \"failed\"\n            ],\n            \"type\": \"string\",\n            \"description\": \"* `started` - Started\\n* `in_progress` - In Progress\\n* `completed` - Completed\\n* `failed` - Failed\"\n          },\n          \"log\": {\n            \"description\": \"Live output from Claude Code execution\"\n          },\n          \"error_message\": {\n            \"type\": \"string\",\n            \"nullable\": true,\n            \"description\": \"Error message if execution failed\"\n          },\n          \"output\": {\n            \"nullable\": true,\n            \"description\": \"Run output data (e.g., PR URL, commit SHA, etc.)\"\n          },\n          \"state\": {\n            \"description\": \"Run state data for resuming or tracking execution state\"\n          },\n          \"created_at\": {\n            \"type\": \"string\",\n            \"format\": \"date-time\",\n            \"readOnly\": true\n          },\n          \"updated_at\": {\n            \"type\": \"string\",\n            \"format\": \"date-time\",\n            \"readOnly\": true\n          },\n          \"completed_at\": {\n            \"type\": \"string\",\n            \"format\": \"date-time\",\n            \"readOnly\": true,\n            \"nullable\": true\n          }\n        },\n        \"required\": [\n          \"completed_at\",\n          \"created_at\",\n          \"id\",\n          \"task\",\n          \"updated_at\"\n        ]\n      }\n    },\n    \"multipart/form-data\": {\n      \"schema\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"id\": {\n            \"type\": \"string\",\n            \"format\": \"uuid\",\n            \"readOnly\": true\n          },\n          \"task\": {\n            \"type\": \"string\",\n            \"format\": \"uuid\",\n            \"readOnly\": true\n          },\n          \"stage\": {\n            \"type\": \"string\",\n            \"nullable\": true,\n            \"description\": \"Current stage for this run (e.g., 'backlog', 'in_progress', 'done')\",\n            \"maxLength\": 100\n          },\n          \"branch\": {\n            \"type\": \"string\",\n            \"nullable\": true,\n            \"description\": \"Branch name for the run\",\n            \"maxLength\": 255\n          },\n          \"status\": {\n            \"enum\": [\n              \"started\",\n              \"in_progress\",\n              \"completed\",\n              \"failed\"\n            ],\n            \"type\": \"string\",\n            \"description\": \"* `started` - Started\\n* `in_progress` - In Progress\\n* `completed` - Completed\\n* `failed` - Failed\"\n          },\n          \"log\": {\n            \"description\": \"Live output from Claude Code execution\"\n          },\n          \"error_message\": {\n            \"type\": \"string\",\n            \"nullable\": true,\n            \"description\": \"Error message if execution failed\"\n          },\n          \"output\": {\n            \"nullable\": true,\n            \"description\": \"Run output data (e.g., PR URL, commit SHA, etc.)\"\n          },\n          \"state\": {\n            \"description\": \"Run state data for resuming or tracking execution state\"\n          },\n          \"created_at\": {\n            \"type\": \"string\",\n            \"format\": \"date-time\",\n            \"readOnly\": true\n          },\n          \"updated_at\": {\n            \"type\": \"string\",\n            \"format\": \"date-time\",\n            \"readOnly\": true\n          },\n          \"completed_at\": {\n            \"type\": \"string\",\n            \"format\": \"date-time\",\n            \"readOnly\": true,\n            \"nullable\": true\n          }\n        },\n        \"required\": [\n          \"completed_at\",\n          \"created_at\",\n          \"id\",\n          \"task\",\n          \"updated_at\"\n        ]\n      }\n    }\n  }\n}",
    "use_request_body_schema_mode": true,
    "validate_request_body_schema": true
  }
}
