definition property

  1. @override
Tool get definition
override

Implementation

@override
Tool get definition => Tool(
      name: 'scroll',
      description:
          'Scroll up/down/left/right, content-relative: down shows what is below. Swipes inside the visible part of the main scrollable, above the keyboard; amountFraction 0.0 to 1.0 (default 0.6). When nothing moved, reason says why: atEnd, atStart, notScrollable or blocked. To find an off-screen item use scroll_to_find.',
      inputSchema: ObjectSchema(
        properties: {
          'direction': Schema.string(
            description: 'One of: ${ScrollDirection.values.map((d) => d.name).join(', ')}',
          ),
          'amountFraction': Schema.num(
            description: 'Fraction of viewport to travel (0.0–1.0). Default 0.6.',
          ),
          'returnScene': Schema.bool(
            description: 'Settle, then report changed and changeCategory. Default true.',
          ),
          'fetchScene': Schema.bool(
            description: 'Also return the new scene text as postScene. Default false.',
          ),
        },
        required: ['direction'],
      ),
    );