run_paste_injection_test
Run a real end-to-end paste injection test: spawn a scratchpad, apply a paste strategy, and verify the captured text matches the sent text.
Instructions
Real end-to-end paste injection test. Spawns a focusable Tk scratchpad target, temporarily flips Mutter's focus-new-windows policy to "strict" so the target auto-grabs focus, fires the requested paste strategy, captures what landed in the target, and returns whether the captured text matches what was sent. SAFE TO RUN — the target is a spawned scratchpad, not the user's active window; the focus-policy flip is reverted after the test. Wayland+GNOME only in v0 (the gsettings focus-policy flip is GNOME-specific). Returns the paste-strategy attempt diagnostic too.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text to inject (default: a unique timestamped marker). | |
| strategy | No | Paste strategy to test (default "ydotool_type"). Use list_paste_strategies to discover names. | |
| captureSeconds | No | How long to keep the Tk target open after firing the paste (default 6s). |