clipboard
Read or write copied text for a target Chrome tab. Use read to check what a Copy button saved; use write to replace it, but this overwrites the user's copy. For form fields, use type_text instead.
Instructions
Read or write the system clipboard (text). Activates the tab and focuses its window first. write overwrites whatever the user had copied, which is not recoverable. To fill a field use type_text instead of write and paste; read checks what a Copy button copied, and an empty clipboard returns text "".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | For write | |
| action | Yes | write takes text; read returns the current clipboard contents | |
| tab_id | No | Target tab; omitted = last tab navigated in this session, else the active one |