Implementation
@override
Tool get definition => Tool(
name: 'explore',
description:
'Ask the map of the app instead of remembering. glint records every screen you reach and every gesture you make into a per-app graph (kept on disk, survives restarts and context loss); this reads it. '
'op: map (default: screens with visits, tried/total controls and stale marks, then edges `s1 --tap fab--> s2`), '
'frontier (untried controls nearest first, each as the exact next call, plus stale screens to re-check), '
'path (to:"<screen id or label>": the shortest known route from where you are, as a ready batch), '
'reset (forget this app\'s graph). '
'A screen is its route plus the set of tappable, typeable and scrollable controls on it (list rows count once, text ignored); a dialog or sheet is its own screen over the one it covers; a screen whose controls changed is stale until seen again. Typed text is never stored. '
'errorKind: sessionNotAttached, targetNotFound (path), invalidArgument.',
inputSchema: ObjectSchema(
properties: {
'op': Schema.string(description: 'map (default) | frontier | path | reset'),
'to': Schema.string(description: 'op=path: a screen id from map (s3) or its label or route.'),
},
),
);