safari_read_tab
Reads the rendered text content of a Safari tab. Identify the tab either by url_match (substring match against URL; first hit wins) or by window_index + tab_index (from safari_list_tabs). Text is capped at max_bytes (default 100 KB). Pass include_html: true to also get the raw HTML source. Pass i...
This record as markdown: /tools/com-local-mcp-local-mcp/safari-read-tab.md
What safari_read_tab does on Local
AI agents call safari_read_tab to retrieve information from Local without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.
| Parameter | Type | Required | Description |
|---|---|---|---|
max_bytes | integer | — | Max bytes of text (and html) to return (default 102400) |
tab_index | integer | — | Tab index from safari_list_tabs (default current tab of that window) |
url_match | string | — | Substring to match against the tab URL. Takes precedence over indices. |
include_html | boolean | — | Also return the HTML source (default false) |
window_index | integer | — | Window index from safari_list_tabs (default 0) |
include_links | boolean | — | Extract all links with href + visible text (default false). Great for navigating SPAs. |
Parameters from the server's own tool schema.
Why safari_read_tab is rated Low
This tool only retrieves and reads data from a browser tab. It performs passive information gathering (text content, HTML source, links) without modifying state, executing code, or triggering side effects. The `include_html` and `include_links` parameters are read-only operations. Risk is low because misuse would only expose whatever content is already visible on the user's screen.
From the tool's definition Tool description states it 'Reads the rendered text content of a Safari tab' and 'extract all links' — purely retrieval operations with no modification or execution capabilities.
Attacks that exploit this kind of access
The rule that runs safari_read_tab safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Local, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For safari_read_tab, this is the rule to start with:
safari_read_tab is read-only, so it stays allowed. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Local, apply this rule, and every safari_read_tab call is checked against it from then on.
Questions about safari_read_tab
Reads the rendered text content of a Safari tab. Identify the tab either by url_match (substring match against URL; first hit wins) or by window_index + tab_index (from safari_list_tabs). Text is capped at max_bytes (default 100 KB). Pass include_html: true to also get the raw HTML source. Pass include_links: true to extract all links with their href and text (useful for following navigation in SPAs like dashboards). It is categorised as a Read tool in the Local MCP Server, which means it retrieves data without modifying state.
safari_read_tab accepts 6 parameters: max_bytes, tab_index, url_match, include_html, window_index, include_links. The full parameter table on this page comes from the server's own tool schema.
Register the Local MCP server in PolicyLayer and add a rule for safari_read_tab: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Local. Nothing to install.
safari_read_tab is a Read tool with low risk. Read-only tools are generally safe to allow by default.
Yes. Add a rate_limit block to the safari_read_tab rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for safari_read_tab. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
safari_read_tab is provided by the Local MCP server (local-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Local, and thousands of servers like it.
This server
Across the catalogue