deploy_and_run
Upload Python code to a mobile automation project, execute it on a real device, and retrieve logs and screenshots for validation.
Instructions
一步完成开发验证循环:上传代码 → 运行 → 收集日志 → 截图验证。 代码会上传为 init.py(入口文件),工程不存在时自动创建。 返回上传结果、运行结果、日志内容和运行后截图。
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": {
"project_name": "<project_name>",
"code": "<code>"
},
"name": "deploy_and_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_name | Yes | 工程名称 | |
| code | Yes | Python 脚本代码内容 | |
| log_seconds | No | 收集日志的秒数,默认 5 |