appium_get_page_source
Get current-screen XML. saveToFile=true returns server-local path/bytes and enables selector/pattern summaries.
Instructions
Get current-screen XML. saveToFile=true returns server-local path/bytes and enables selector/pattern summaries.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "appium_get_page_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | No | Literal tag/attribute substring. | |
| selector | No | XPath selecting elements. | |
| sessionId | No | Session ID; defaults to the active session. | |
| saveToFile | No | Save fresh XML to a file; return path/bytes instead of XML. |