GlintConfig class
Runtime-tunable defaults. Tools that have a baked-in constant
(poll cadences, ceilings, ring capacities) consult this instead,
so the agent can adjust them via the config MCP tool without
restarting glint.
Constructors
- GlintConfig({int readyTimeoutMs = 5000, int attachProbeTimeoutMs = 2000, int launchTimeoutMs = 180000, int settleCeilingMs = 5000, int postActionSettleMs = 1500, int settleQuietFrames = 3, int scrollMaxScrolls = 8, double scrollAmountFraction = 0.6, int actionLogCapacity = 200, int appLogCapacity = 500, int iconEnrichMax = 20, int inputEnrichMax = 10, int sceneLineBudget = 160, bool devHints = true, int captureSettleMs = 700, int screenshotMaxSize = 1024, String screenshotFormat = 'jpeg', int screenshotQuality = 75, bool showTouches = false, bool iosNativeRunner = true})
Properties
- actionLogCapacity ↔ int
-
Ring capacity for glint's tool-call action log.
getter/setter pair
- appLogCapacity ↔ int
-
Ring capacity for the app stderr/logging buffer.
getter/setter pair
- attachProbeTimeoutMs ↔ int
-
Max time
attachpolls for the first rendered frame before giving up on the iOS viewport probe (blank/loading first frame).getter/setter pair - captureSettleMs ↔ int
-
Delay after a lifecycle change before the background screenshot.
getter/setter pair
- devHints ↔ bool
-
Surface developer findings (eager lists) as warnings.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconEnrichMax ↔ int
-
Max SemanticIcons enriched per scene (each costs ~1 VM eval).
getter/setter pair
- inputEnrichMax ↔ int
-
Max SemanticInputs enriched per scene (each costs ~2 VM evals).
getter/setter pair
- iosNativeRunner ↔ bool
-
Start the XCUITest runner on every iOS simulator attach so native UI (system alerts, device-mode screens) is read through it.
getter/setter pair
- launchTimeoutMs ↔ int
-
Max time
attach launch:…waits forflutter runto print its VM URI. Cold builds are slow, so this defaults high.getter/setter pair - postActionSettleMs ↔ int
-
Settle ceiling folded into every gesture's post-action read.
getter/setter pair
- readyTimeoutMs ↔ int
-
Default ceiling for tap/long_press/swipe/drag/type
awaitReady.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sceneLineBudget ↔ int
-
Lines a full get_scene may return before the renderer reduces depth.
getter/setter pair
- screenshotFormat ↔ String
-
jpegorpngfor images sent to the model.getter/setter pair - screenshotMaxSize ↔ int
-
Longest side, in pixels, of any image sent to the model; 0 sends captures at full size.
getter/setter pair
- screenshotQuality ↔ int
-
JPEG quality 1-100 for images sent to the model.
getter/setter pair
- scrollAmountFraction ↔ double
-
Default per-step scroll size as fraction of viewport.
getter/setter pair
- scrollMaxScrolls ↔ int
-
Default ceiling for
scroll_to_findscroll attempts.getter/setter pair - settleCeilingMs ↔ int
-
Default ceiling for the
wait_for_settletool.getter/setter pair - settleQuietFrames ↔ int
-
Consecutive
schedulerPhase==idlepolls before declaring settled.getter/setter pair - showTouches ↔ bool
-
Draw each touch inside attached apps (dot, trail, release ripple) for people watching or recording.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
String key, Object value) → String? - Returns null on success, or a description of the validation failure.
-
toJson(
) → Map< String, Object> -
All known keys → string of current value, for the
config getview. Telemetry is env-controlled (GLINT_TELEMETRY, DO_NOT_TRACK, GLINT_NO_TELEMETRY), never agent-controlled. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited