Remove a pinned script. Args: script_id: The ``PinnedScript`` returned by ``pin()``.
(self, script_id: PinnedScript | str)
| 308 | return self._script.pin(function_declaration) |
| 309 | |
| 310 | def unpin(self, script_id: PinnedScript | str) -> None: |
| 311 | """Remove a pinned script. |
| 312 | |
| 313 | Args: |
| 314 | script_id: The ``PinnedScript`` returned by ``pin()``. |
| 315 | """ |
| 316 | self._script.unpin(script_id) |
| 317 | |
| 318 | def execute(self, function_declaration: str | PinnedScript, *args: Any, context_id: str | None = None) -> Any: |
| 319 | """Execute JavaScript in the current window and return its result. |