definition property

  1. @override
Tool get definition
override

Implementation

@override
Tool get definition => Tool(
      name: 'wait_for_settle',
      description:
          'Wait until the screen is stable: no scheduled frames and no loading spinners. For async work you started (network, animation, route change); actions already settle themselves. ceilingMs default 5000. settled:false means it was still loading at the ceiling: check what is loading, then wait again or raise ceilingMs. Device mode: flutterModeRequired.',
      inputSchema: ObjectSchema(
        properties: {
          'ceilingMs': Schema.int(
            description: 'Hard cap on wait time. Default 5000.',
          ),
          'timeoutMs': Schema.int(
            description: 'Same as ceilingMs, named as in wait_for.',
          ),
          'quietFrames': Schema.int(
            description: 'Consecutive quiet polls required to declare settled. Default 3.',
          ),
          'checkLoadingAffordances': Schema.bool(
            description: 'When true, frame-quiet still polls if any CircularProgressIndicator / '
                'LinearProgressIndicator / RefreshIndicator is in the scene. Default true.',
          ),
        },
      ),
    );