bluetooth

bluetooth is a skill for Claude Code, Codex from FoneClaw-AI/foneclaw-android. It costs 37 tokens per session (2,319 once invoked), scanned C, original, MIT.

A guide for Android apps that inspect Bluetooth state and devices, start pairing, and request that Bluetooth be turned on or off.

In plain words
What is it for?
Use it to view nearby, paired, or publicly visible connected devices, check Bluetooth status, begin pairing, or request a Bluetooth toggle. It does not directly create GATT, RFCOMM, HID, or audio connections.
Why use it?
It clarifies what a normal Android app can do and where system permissions or settings prevent full control.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

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 skills/foneclaw-ai/foneclaw-android/bluetooth
Any agent
npx skills add FoneClaw-AI/foneclaw-android --skill bluetooth
Clone the repo
git clone --depth 1 https://github.com/FoneClaw-AI/foneclaw-android

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bluetooth

README.md
[![agentmods](https://agentmods.dev/badge/skills/foneclaw-ai/foneclaw-android/bluetooth.svg)](https://agentmods.dev/skills/foneclaw-ai/foneclaw-android/bluetooth)
Your own site
<a href="https://agentmods.dev/skills/foneclaw-ai/foneclaw-android/bluetooth"><img src="https://agentmods.dev/badge/skills/foneclaw-ai/foneclaw-android/bluetooth.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,319 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.1 $0.00037 $0.02319
Opus 5 $0.00018 $0.01159
Sonnet 5 $0.00007 $0.00464
Haiku 4.5 $0.00004 $0.00232

Measured 5d ago against content hash f0307f51ff34, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade C, and why

bluetooth scanned grade C with 1 finding 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 5d 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.

Instruction-override phrasinghighPrompt injection

Text telling the model to disregard its earlier instructions or safety rules is the shape of a prompt injection, whoever wrote it.

- Bypass system restrictions to silently force-enable or force-disable Bluetooth; when the legacy public toggle API is rejected by the system, the user must handle it manually.
skills/bluetooth/SKILL.md · 170 lines

How it starts

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

Bluetooth Tool Guide

Scope

Use this skill when the user wants the Agent to inspect, scan, pair, or guide enabling/disabling Bluetooth. The Bluetooth tools operate at the normal Android app layer — they are not equivalent to the system Settings app and do not have system-level privileges.

Good fits:

  • View nearby Bluetooth devices.
  • View already paired Bluetooth devices.
  • View connected devices visible through public app profiles.
  • Check the current Bluetooth on/off state.
  • Initiate the system pairing flow using a Bluetooth MAC address.
  • Request to enable Bluetooth.
  • Request to disable Bluetooth; under targetSdk 28, prefer the legacy public disable API, and when the system rejects it, clearly tell the user to disable Bluetooth manually.

Not good fits:

  • Fully simulate the interaction of the system Bluetooth settings page.
  • Guarantee retrieval of all connected Bluetooth devices.
  • Bypass system restrictions to silently force-enable or force-disable Bluetooth; when the legacy public toggle API is rejected by the system, the user must handle it manually.
  • Directly establish protocol-level connections such as GATT, RFCOMM, HID, or audio.
  • Bypass system permissions, system dialogs, or user confirmation.

Available Tools

  • bluetooth_nearby_devices: Scan for nearby Bluetooth devices. Default scan duration is 3000 ms; unknown devices without a readable name are hidden by default.
  • bluetooth_state: Read the Bluetooth adapter state. Returns on, off, turning_on, turning_off, or unknown.
  • bluetooth_paired_devices: Read the system's list of paired devices.
  • bluetooth_connected_devices: Read connected devices visible to a normal app through public Bluetooth profile APIs.
  • bluetooth_pair_device: Initiate the Android system pairing flow using a Bluetooth MAC address.
  • bluetooth_request_enable: Request to enable Bluetooth. Under targetSdk 28, it tries the legacy public enable API first, then falls back to the system confirmation dialog.
  • bluetooth_disable: Request to disable Bluetooth. Under targetSdk 28, it tries the legacy public disable API first; on failure it reports that normal apps cannot disable Bluetooth.
  • bluetooth_request_disable: Compatibility alias for bluetooth_disable.

Read the full file on GitHub · 170 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. 5d ago First seen · 170 lines · 37 tokens per session scan C f0307f51ff34

Subscribe to this mod's changes

bluetooth is a skill published in the GitHub repository FoneClaw-AI/foneclaw-android (6 stars, last pushed 3d ago), licensed MIT. It adds 37 tokens to every session and 2,319 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 1 finding (instruction-override phrasing). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.