Validates the provided keyword arguments to ensure they conform to the step request schema

Signature

def step(self, **data: *<class 'notte_sdk.types.StepRequestDict'>) -> notte_sdk.types.StepResponse

Parameters

min_nb_actions
int | None

The minimum number of actions to list before stopping. If not provided, the listing will continue until the maximum number of actions is reached.

max_nb_actions
int

The maximum number of actions to list after which the listing will stop. Used when min_nb_actions is not provided.

type
str

The type of action to execute. Can be “step” or a browser action type.

action_id
str | None

The ID of the action to execute. Required for step type actions.

value
str | int | None

The value to input for form actions.

enter
bool | None

Whether to press enter after inputting the value.

action
typing.Union[notte_core.actions.StepAction, typing.Annotated[notte_core.actions.GotoAction | notte_core.actions.GotoNewTabAction | notte_core.actions.SwitchTabAction | notte_core.actions.ScrapeAction | notte_core.actions.GoBackAction | notte_core.actions.GoForwardAction | notte_core.actions.ReloadAction | notte_core.actions.WaitAction | notte_core.actions.PressKeyAction | notte_core.actions.ScrollUpAction | notte_core.actions.ScrollDownAction | notte_core.actions.HelpAction | notte_core.actions.CompletionAction | notte_core.actions.ClickAction | notte_core.actions.FillAction | notte_core.actions.MultiFactorFillAction | notte_core.actions.FallbackFillAction | notte_core.actions.CheckAction | notte_core.actions.SelectDropdownOptionAction, FieldInfo(annotation=NoneType, required=True, discriminator='type')], NoneType]

The action to execute. Cannot be used together with action_id, value, or enter.

Returns

StepResponse: Result from the step execution