definition property

  1. @override
Tool get definition
override

Implementation

@override
Tool get definition => Tool(
      name: 'hardware_button',
      description: 'Press a physical hardware button. iOS Sim: lock + unlock '
          '(Face ID auth via Darwin notification + bottom-edge swipe) + '
          'home (Face ID gesture) + back (the left-edge back gesture, since '
          'iPhone has no back button) all work on Xcode 26. Returns the app '
          'lifecycle after the press (resumed / inactive / paused) and, for '
          'lock / unlock, whether the device reports itself locked, so you '
          'know it took. Available buttons are listed in attach\'s reply.',
      inputSchema: ObjectSchema(
        properties: {
          'button': Schema.string(
            description: 'Button name. One of: ${HardwareButton.values.map((b) => b.name).join(', ')}.',
          ),
        },
        required: ['button'],
      ),
    );