definition property

  1. @override
Tool get definition
override

Implementation

@override
Tool get definition => Tool(
      name: 'config',
      description: 'Inspect or override glint defaults at runtime '
          '(readyTimeoutMs, settleCeilingMs, scrollMaxScrolls, '
          'scrollAmountFraction, showTouches, iosNativeRunner, etc.). Per-call args still win over config.',
      inputSchema: ObjectSchema(
        properties: {
          'op': Schema.string(description: 'get | set'),
          'key': Schema.string(
            description: 'Config key to set, e.g. scrollMaxScrolls '
                '(required for set; `get` lists all keys + current values).',
          ),
          'value': Schema.combined(
            description: 'New value for `key` (required for set). Type matches '
                'the key: int (scrollMaxScrolls), double (scrollAmountFraction), '
                'or bool.',
          ),
        },
        required: ['op'],
      ),
    );