MissionStep class
One unit of work in a MissionMessage.
Constructors
-
MissionStep({required String action, String? targetStableId, String? targetIdentifier, String? targetText, String? targetRole, List<
int> ? bounds, String? kind, List<String> ? targetTokens, String? insideStableId, String? insideText, String? insideRole, String? forbidText, int? nthMatch, Map<String, dynamic> params = const {}}) -
const
-
MissionStep.fromJson(Map<
String, dynamic> json) -
factory
Properties
- action → String
-
Wire-format action name:
click,scroll_to,highlight,scroll_and_highlight,navigate,set_text,type,wait,tap_bounds.final -
bounds
→ List<
int> ? -
Last-resort bounds reference
[left, top, right, bottom]in logical pixels.final - forbidText → String?
-
Negative filter — exclude any candidate whose text contains this
substring.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- insideRole → String?
-
Anchor — role of an ancestor (e.g.
section,card).final - insideStableId → String?
-
Anchor — exact stable_id of an ancestor the target must live inside.
final
- insideText → String?
-
Anchor — text label of an ancestor (typically a section header).
final
- kind → String?
-
Intent type.
final
- nthMatch → int?
-
"Pick the Nth match" — when multiple candidates remain after filtering,
prefer the nth (0-based) in reading order.
final
-
params
→ Map<
String, dynamic> -
Action-specific extras (
textfor set_text,duration_msfor wait,scroll_within_stable_idto pin which scrollable the auto-scroll path drives, …).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- targetIdentifier → String?
-
Host-supplied
Semantics(identifier:)value.final - targetRole → String?
-
Role hint —
button,text,card,link,input_field, … Can stand alone (find any button) or combine with targetText (find the button labelled "Submit").final - targetStableId → String?
-
Exact stable ID minted by the SDK's tree pipeline (e.g.
home.quick_stats.see_all).final - targetText → String?
-
Substring of the node's visible text (label / value / tooltip).
final
-
targetTokens
→ List<
String> ? -
Token bag the planner extracted from the user phrase.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited