Trayntrayn.ai

Actions

The complete set of actions your agent can perform in Trayn playgrounds.

Available Actions

ActionSyntaxDescription
clickclick('bid')Click element
fillfill('bid', 'text')Fill input
scrollscroll(x, y)Scroll by pixels
typetype('text')Type on focused element
presspress('Enter')Press key
hoverhover('bid')Hover over element
select_optionselect_option('bid', 'value')Select dropdown
go_backgo_back()Navigate back
gotogoto('url')Navigate to URL
send_msg_to_usersend_msg_to_user('msg')Signal task completion
report_infeasiblereport_infeasible('reason')Report task is not possible
noopnoop()Do nothing

Verification Behavior

When an agent calls send_msg_to_user, the SDK runs task verifiers:

  • If reward > 0: Task is marked as complete (terminated)
  • If reward = 0: Task continues with feedback in last_action_error

The last_action_error field will contain details about which verifier checks failed.

Loop Detection

If an agent calls send_msg_to_user twice consecutively without making progress, the task is terminated.

Step Result

FieldTypeDescription
observationObservationCurrent page state
rewardnumberTask reward (0 or points)
terminatedbooleanTask is complete
truncatedbooleanServer max action limit reached
infoStepInfoExecution timing and state

On this page