Implementation
@override
Tool get definition => Tool(
name: 'resolve',
description: 'Drill-down geometry for a glintId. Needs a Flutter app (device '
'mode: errorKind flutterModeRequired). Returns: logicalCenter, '
'logicalBounds (all logical points), logicalViewSize, devicePixelRatio, '
'painted (visible to human), hittable (would receive a tap), '
'and warnings (e.g. "target is not painted", "target is not hittable"). '
'Use this when an action fails or behaves unexpectedly — resolve the '
'target to understand its true position and hit-test state before retrying. '
'No side effects. Works on both base-screen and overlay glintIds.',
inputSchema: ObjectSchema(
properties: {
'glintId': Schema.string(
description: 'Stable id from `get_scene`.',
),
'text': Schema.string(
description: 'Visible text of the target instead of glintId, matched as tap does.',
),
},
),
);