definition property

  1. @override
Tool get definition
override

Implementation

@override
Tool get definition => Tool(
      name: 'map',
      description:
          'A Google map in the attached app, driven like a finger. op: read (camera and markers with their screen points), '
          'tap (marker: its id), pan (dx, dy in logical points, or to: "lat,lng" or marker: id to center it), zoom (direction: in | out, one finger). '
          'Each reply gives the camera before and after. errorKind: sessionNotAttached, targetNotFound, invalidArgument.',
      inputSchema: ObjectSchema(
        properties: {
          'op': Schema.string(description: _ops.join(' | ')),
          'marker': Schema.string(description: 'tap: the marker id to tap. pan: the marker to center.'),
          'to': Schema.string(description: 'pan: "lat,lng" to center.'),
          'dx': Schema.num(description: 'pan: move the map content this many logical points right (negative: left).'),
          'dy': Schema.num(description: 'pan: move the map content this many logical points down (negative: up).'),
          'direction': Schema.string(description: 'zoom: in | out.'),
          'index': Schema.int(description: 'Which map when the screen has several, 0 = first. Default 0.'),
        },
        required: ['op'],
      ),
    );