send-keys-by-ios-predicate
Input text into iOS app elements using predicate string selectors for mobile automation testing with Appium.
Instructions
Send text to an element using iOS predicate string (iOS only)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"predicateString": "<predicateString>",
"text": "<text>"
},
"name": "send-keys-by-ios-predicate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| predicateString | Yes | iOS predicate string (e.g., 'type == "XCUIElementTypeTextField"') | |
| text | Yes | Text to input | |
| timeoutMs | No | Timeout in milliseconds (default: 10000) |