Patch Script and Run
apply_patch_and_runPatch an automation script and immediately re-run it, returning one compact result. Use this instead of update_script followed by run_tests: it collapses the fix-and-verify loop into a single round trip. Continue iterating when the failure is a test defect; preserve assertions when the evidence indicates an application defect.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patch | Yes | Anchored edits applied in order; each old_string must match exactly once unless replace_all is set. | |
| context | No | Explain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization." | |
| base_url | No | Base URL for the application under test | |
| headless | No | Run in headless mode | |
| script_id | Yes | Automation script ID to patch and run | |
| include_logs | No | Include full stdout/stderr and console logs | |
| include_trace | No | Include trace details | |
| auth_profile_id | No | Secret-free project auth-profile reference | |
| expected_version | No | Reject the patch if the script changed since this version was read | |
| execution_service | No | Execution service; auto selects the compatible managed runner | auto |
| include_artifacts | No | Include safe unsigned legacy artifact links and opaque receipt references (no resolver) |