AttachTool class
attach — connect to a Flutter app's VM and bind the device it's actually
running on. Every argument is optional: glint discovers the app, derives the
platform from the VM, correlates the app to its real simulator (so it picks
the right one even with several booted), and reports device + app identity,
capabilities, and screen context in one reply.
Constructors
- AttachTool({DeviceClaims? claims})
-
const
Properties
- acceptsAllApps → bool
-
Whether
app:"*"means every attached app and reaches handle unrouted.no setterinherited - claims → DeviceClaims?
-
Which devices other glint sessions drive; a fresh DeviceClaims when null.
final
- definition → Tool
-
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- registeredDefinition → Tool
-
definition plus the shared
approuting arg — what the server registers.no setterinherited - routesByApp → bool
-
apphere means "which app to attach/switch to", not call routing.no setteroverride - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
callCeiling(
GlintSession session, Map< String, Object?> args) → Duration -
How long a call with
argsmay run before glint cancels it and answerstoolTimeout; tools that wait on request raise it.override -
changesDevice(
Map< String, Object?> args) → bool -
Attaching never changes an app already attached, so an observe-only active app may attach another.
override
-
handle(
GlintSession session, CallToolRequest request) → Future< StructuredResponse> -
override
-
invoke(
GlintSession session, CallToolRequest request) → Future< CallToolResult> -
Runs handle under a time ceiling and a progress heartbeat; a call that outlives its ceiling is cancelled and answered with
toolTimeout.inherited -
logCall(
GlintSession session, CallToolRequest request, StructuredResponse response, DateTime start, {AppSession? app, ExploreCall? call, Object? failure, CallMark? since, int? batchStep, Map< String, Object?> helpers = const {}}) → void -
Records one call in the action log + usage recorder. Public so a
composite tool (batch) can log each step under its own tool name.
inherited
-
noFrameResponse(
GlintSession session, InspectorReadError e) → Future< StructuredResponse> -
The widget tree came back empty: a system surface over an app that is not resumed, or no first frame yet.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
observeRefusal(
AppSession? app, Map< String, Object?> args) → StructuredResponse? -
The refusal for a call on an observe-only
appthat would change it; null when the call may run.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited