definition property

  1. @override
Tool get definition
override

Implementation

@override
Tool get definition => Tool(
      name: 'record',
      description:
          'Record the screen while running steps, then return the distinct frames as PNG files, in order. For transitions or screens that only flash. steps:[{tool,args}] as in batch (optional). durationMs: passive capture, or the tail after the steps (default 400); everyMs: sample interval (default 50); distinctOnly (default true); maxFrames (default 12). errorKind: unsupportedBackendAction, appUnresponsive, backendToolError.',
      inputSchema: ObjectSchema(
        properties: {
          'steps': batchStepsSchema(_maxSteps, description: 'Optional steps to run while recording. Max $_maxSteps.'),
          'durationMs': Schema.int(
              description: 'Passive capture with no steps, or the tail after them (0-30000). Default 400.'),
          'everyMs': Schema.int(description: 'Sample interval in ms (16-1000). Default 50.'),
          'distinctOnly': Schema.bool(description: 'Keep only frames that differ. Default true.'),
          'maxFrames': Schema.int(description: 'Max frames returned (1-60). Default 12.'),
          'touches': Schema.bool(
              description: 'Also write video-touches.mp4 with each touch glint sent drawn on it (dot, trail, ring), '
                  'for people watching; the returned frames stay clean. Default false.'),
          'inline': Schema.bool(
              description:
                  'Attach up to 4 frames as images (512 px longest side), for clients that cannot read files. Default false.'),
        },
      ),
    );