set-value

A command for writing a value directly into an accessibility-enabled interface element through Peekaboo. Accessibility values are information that macOS exposes so software can inspect and control interface elements.

In plain words
What is it for?
Setting text or another value on a selected macOS interface element by its identifier or query, with optional app, process, or window targeting.
Why use it?
It avoids simulated typing, cursor movement, timing issues, and unwanted autocomplete behavior when replacing a field's value.

Command

▶ Your AI Agent Can Now Drive Your Mac (Peekaboo Tutorial) Omar Kamal · about openclaw/Peekaboo · on YouTube →
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/openclaw/peekaboo/set-value
Clone the repo
git clone --depth 1 https://github.com/openclaw/Peekaboo
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 617 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00617
Opus 5 $0.00000 $0.00309
Sonnet 5 $0.00000 $0.00123
Haiku 4.5 $0.00000 $0.00062

Measured 3d ago against content hash b923e3816aaa, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

set-value scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/commands/set-value.md · 49 lines

How it starts

The opening of the file, as written. The whole thing — 49 lines — stays where its author put it; the contents beside it link to each section on GitHub.

peekaboo set-value

set-value writes an accessibility value directly to a settable element. It is the CLI equivalent of the MCP set_value tool and avoids keyboard synthesis, cursor movement, input-method timing, and autocomplete side effects when replacement semantics are intended.

Options

Option Description
<value> String value to write.
--on <id-or-query> Element ID from peekaboo see, or a query used by the automation service. Required.
--snapshot <id> Snapshot ID from peekaboo see; uses the latest unmodified UI snapshot when omitted.
Target flags --app, --pid, --window-id, --window-title, and --window-index scope the mutation without activating the app.
--foreground Explicitly focus the target before mutation and allow web-content discovery to focus the page when required.

Notes

  • The target element must expose a settable accessibility value.
  • Every mutation requires a current snapshot. App/PID/window target flags capture one automatically; without target flags, run peekaboo see first. A missing snapshot is refused instead of falling through to the frontmost app. Exact process/window receipts and the final resolved Accessibility element PID are revalidated before the value is written.
  • Remote value mutation requires Bridge protocol 1.37 and processGenerationBoundElementMutations; older or receiptless hosts are refused before the request is sent.
  • A result with requires_fresh_observation: true, or no canonical outcome, makes that snapshot mutation-ineligible. The old evidence stays readable, but another mutation must use a new peekaboo see snapshot and otherwise fails before dispatch.
  • If the Accessibility write is accepted but its readback cannot be verified, Peekaboo reports an indeterminate, retry-unsafe result with the exact target receipt. Observe the target again before deciding whether to retry; never replay the write against the old snapshot.
  • Secure/password fields are rejected; use explicit typing flows for those contexts.
  • This is not a replacement for peekaboo type when the app needs observable keystrokes, IME handling, autocomplete, or undo grouping.
  • JSON and MCP output includes the canonical process-generation target_identity and target_receipt alongside target, actionName, oldValue, newValue, and executionTime.

Read the full file on GitHub · 49 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 49 lines · 0 tokens per session scan A b923e3816aaa

Subscribe to this mod's changes

set-value is a command published in the GitHub repository openclaw/Peekaboo (5,098 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 617 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.