@@ -921,6 +921,7 @@ base mixin DartToolingDaemonSupport
921921 inputSchema: Schema .object (
922922 properties: {ParameterNames .uri: Schema .string ()},
923923 required : const [ParameterNames .uri],
924+ additionalProperties: false ,
924925 ),
925926 );
926927
@@ -944,6 +945,7 @@ base mixin DartToolingDaemonSupport
944945 'relevant before reading them again.' ,
945946 ),
946947 },
948+ additionalProperties: false ,
947949 ),
948950 );
949951
@@ -955,7 +957,7 @@ base mixin DartToolingDaemonSupport
955957 'current state. Requires "${connectTool .name }" to be successfully '
956958 'called first.' ,
957959 annotations: ToolAnnotations (title: 'Take screenshot' , readOnlyHint: true ),
958- inputSchema: Schema .object (),
960+ inputSchema: Schema .object (additionalProperties : false ),
959961 );
960962
961963 @visibleForTesting
@@ -977,7 +979,7 @@ base mixin DartToolingDaemonSupport
977979 'relevant.' ,
978980 ),
979981 },
980- required : [] ,
982+ additionalProperties : false ,
981983 ),
982984 );
983985
@@ -992,7 +994,7 @@ base mixin DartToolingDaemonSupport
992994 "successfully called first. Doesn't work for Non-Flutter Dart CLI "
993995 'programs.' ,
994996 annotations: ToolAnnotations (title: 'Hot restart' , destructiveHint: true ),
995- inputSchema: Schema .object (properties : {}, required : [] ),
997+ inputSchema: Schema .object (additionalProperties : false ),
996998 );
997999
9981000 @visibleForTesting
@@ -1010,6 +1012,7 @@ base mixin DartToolingDaemonSupport
10101012 'are returned.' ,
10111013 ),
10121014 },
1015+ additionalProperties: false ,
10131016 ),
10141017 );
10151018
@@ -1023,7 +1026,7 @@ base mixin DartToolingDaemonSupport
10231026 title: 'Get selected widget' ,
10241027 readOnlyHint: true ,
10251028 ),
1026- inputSchema: Schema .object (),
1029+ inputSchema: Schema .object (additionalProperties : false ),
10271030 );
10281031
10291032 @visibleForTesting
@@ -1043,6 +1046,7 @@ base mixin DartToolingDaemonSupport
10431046 'enabled' : Schema .bool (title: 'Enable widget selection mode' ),
10441047 },
10451048 required : const ['enabled' ],
1049+ additionalProperties: false ,
10461050 ),
10471051 );
10481052
@@ -1057,7 +1061,7 @@ base mixin DartToolingDaemonSupport
10571061 title: 'Get Active Editor Location' ,
10581062 readOnlyHint: true ,
10591063 ),
1060- inputSchema: Schema .object (),
1064+ inputSchema: Schema .object (additionalProperties : false ),
10611065 );
10621066
10631067 static final _connectedAppsNotSupported = CallToolResult (
0 commit comments