provider task-runstaskstasks POST /api/projects/{project_id}/tasks/{task_id}/runs/{id}/command/
@utdk/posthog /api/projects/{project_id}/tasks/{task_id}/runs/{id}/command/
Send command to task run
Queue user_message JSON-RPC commands through the task workflow and forward sandbox control commands to the agent server. Supports user_message, cancel, close, permission_response, and set_config_option commands.
id path required
string
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string
task_id path required
string

Try it

Authentication
Configure credentials for PostHog API
tasksRunsCommandCreate
POST/api/projects/{project_id}/tasks/{task_id}/runs/{id}/command/
Queue user_message JSON-RPC commands through the task workflow and forward sandbox control commands to the agent server. Supports user_message, cancel, close, permission_response, and set_config_option commands.

Parameters

required
required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

required

Input

required

JSON-RPC version, must be '2.0' * `2.0` - 2.0

required

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_option

Parameters for the command

Optional JSON-RPC request ID (string or number)

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.tasksRunsCommandCreate()