---
title: "Safari Page 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/safaripagetext
markdown: https://docs.nodetool.ai/nodes/lib/apple/safaripagetext.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/lib/apple/safaripagetext.md
---

# Safari Page Text

**Type:** `lib.apple.SafariPageText`

**Namespace:** `lib.apple`

## Description

Extract visible text from Safari's front document via injected JavaScript (requires 'Allow JavaScript from Apple Events' in Safari's Develop menu).
    safari, page, text, extract

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| max_chars | `int` | Truncate output to this many characters | `50000` |
| prefer_article | `bool` | Use <article> innerText when present | `true` |

## Outputs

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

## Related Nodes

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