Skip to main content
Glama

ACTION_CLIPBOARD

Read or write text in the Android system clipboard during automation workflows, storing results in variables and returning success or error details.

Instructions

读取或写入系统剪贴板。输出:clipboard_content, clipboard_success, clipboard_error。Android 10+ 应用在后台时系统禁止读剪贴板,get 可能得到空串而 clipboard_success 仍为 true。。字符串参数支持 ${var} 插值;结果以变量快照 JSON 返回。

Input Schema

NameRequiredDescriptionDefault
textNo要写入的文字(action=set 时必填,支持 ${var})
actionYesget=读取,set=写入
requireNo执行后要求为 true 的变量名(如 click_success),不满足按出错处理
on_errorNo节点出错时:skip=跳过继续(默认),stop=停止整个工作流
output_varNo读取结果存到的变量名(默认 clipboard_content)
node_timeout_msNo单节点超时毫秒,0=不限;默认 30 分钟

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations supplied, the description carries the burden and does well: it discloses the Android 10+ background read restriction and the trap that get can return an empty string while clipboard_success is still true. It also names the three output fields, which the agent would otherwise have to guess. It stops short of permissions behavior for write or failure semantics, so not a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is short and front-loaded with the core purpose before the caveats. There is a stray doubled period ('。。') and the output-field list competes with the behavioral warning, but nothing is padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description compensates by naming clipboard_content, clipboard_success, and clipboard_error, plus the most important edge case for this platform. For a six-parameter tool with fully documented schema, this covers what an agent needs to call it correctly, with only write-side failure behavior left implicit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so every parameter already carries its own description and the baseline is 3. The description adds that string parameters support ${var} interpolation and that results are returned as a variable-snapshot JSON, which is a modest but real addition over the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: 'read from or write to the system clipboard', and the get/set split is explicit. It does not explicitly contrast with nearby siblings like ACTION_INPUT_TEXT or ACTION_READ_SCREEN, but the purpose is unambiguous on its own.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the 'read or write clipboard' framing and the action enum, but there is no explicit when-to-use guidance and no named alternative. The Android 10+ background caveat is context, not routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.