definition property

  1. @override
Tool get definition
override

Implementation

@override
Tool get definition => Tool(
      name: 'app_logs',
      description: 'Query the running app\'s log buffer (FlutterError dumps + '
          'developer.log + stderr writes). Use `errorsOnly` to surface only '
          'entries that look like exceptions / stack traces, and `contains` / '
          '`match` to find lines in a noisy app. Entries are cut at `maxChars` '
          'each and the reply at ~20000 chars; `seq` addresses the full entry.',
      inputSchema: ObjectSchema(
        properties: {
          'limit': Schema.int(description: 'Max entries. Default 50.'),
          'errorsOnly': Schema.bool(
            description: 'Only entries that look like exceptions / stack '
                'traces.',
          ),
          'format': Schema.string(
            description: 'text (default, rendered) or json (structured '
                'entries — pass this to get the entries array).',
          ),
          'stream': Schema.string(
            description: 'Filter: stderr or logging.',
          ),
          'native': Schema.bool(
            description:
                'Native crashes of the app since attach (iOS crash reports, Android crash buffer) instead of Dart logs.',
          ),
          'sinceSeq': Schema.int(
            description: 'Return entries with sequence >= sinceSeq.',
          ),
          'contains': Schema.string(
            description: 'Only entries containing this text (case-insensitive). Applied before limit.',
          ),
          'match': Schema.string(
            description:
                'Only entries matching this Dart regex (content or logger name). Applied before limit; combine with contains to require both.',
          ),
          'maxChars': Schema.int(
            description:
                'Cut each entry to this many chars, with a marker naming what was dropped. Default 600, 0 = no cap.',
          ),
        },
      ),
    );