---
title: "Safari Selection Text"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/lib/apple/safariselectiontext
markdown: https://docs.nodetool.ai/nodes/lib/apple/safariselectiontext.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/lib/apple/safariselectiontext.md
---

# Safari Selection Text

**Type:** `lib.apple.SafariSelectionText`

**Namespace:** `lib.apple`

## Description

Return the currently selected text from Safari's front document (uses `do JavaScript`; requires 'Allow JavaScript from Apple Events' in Safari's Develop menu).
    safari, selection, text

## Properties

_(none)_

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `str` |  |

## Related Nodes

Browse other nodes in the [lib.apple](./) namespace.
