@@ -29,7 +29,7 @@ async function executeIdbCommand(
2929) : Promise < string > {
3030 let fullArgs : string [ ] = [ ] ;
3131
32- const uiCommands = [ 'describe-all' , 'describe-point' , 'tap' , 'swipe' , 'key' , 'press' ] ;
32+ const uiCommands = [ 'describe-all' , 'describe-point' , 'tap' , 'swipe' , 'key' , 'press' , 'text' ] ;
3333
3434 if ( uiCommands . includes ( commandName ) ) {
3535 fullArgs = [ 'ui' , commandName , '--udid' , simulatorUuid ] ;
@@ -267,7 +267,7 @@ export function registerIdbTools(server: McpServer): void {
267267 // 3. tap
268268 server . tool (
269269 'tap' ,
270- 'Simulates a tap event at the specified (x, y) coordinates in the simulator.' ,
270+ 'Simulates a tap event at the specified (x, y) coordinates in the simulator. Make sure to tap the center of the element you want to tap. ' ,
271271 {
272272 simulatorUuid : z . string ( ) . uuid ( 'Invalid Simulator UUID format' ) ,
273273 x : z . number ( ) . int ( 'X coordinate must be an integer' ) ,
@@ -453,7 +453,7 @@ export function registerIdbTools(server: McpServer): void {
453453 // 6. type_text
454454 server . tool (
455455 'type_text' ,
456- 'Simulates typing the specified text into the simulator.' ,
456+ 'Simulates typing the specified text into the simulator. Make sure to tap the center of the text field first to focus it. ' ,
457457 {
458458 simulatorUuid : z . string ( ) . uuid ( 'Invalid Simulator UUID format' ) ,
459459 text : z . string ( ) . min ( 1 , 'Text cannot be empty' ) ,
0 commit comments