Implementation
@override
Tool get definition => Tool(
name: 'shutdown_sim',
description: 'Shut down a simulator/emulator. device: the one to stop (defaults '
'to the attached device). all:true shuts down every booted device. '
'Detaches first if glint is driving the device. A device this '
'session never attached or launched on is refused unless force:true. '
'iOS via simctl, Android via adb emu kill.',
inputSchema: ObjectSchema(
properties: {
'device': Schema.string(
description: 'Device id. Defaults to the attached device.',
),
'all': Schema.bool(
description: 'Shut down every booted device. Default false.',
),
'force': Schema.bool(
description: 'Also shut down devices this session never used. Default false.',
),
},
),
);