Skip to main content
Glama

tc_keyboard

Send keyboard chords to the local 1C client or browse standard shortcuts offline, enabling automation of 1C window and control actions.

Instructions

Send a keyboard chord to the local 1C client or browse standard shortcuts offline. Also available: tc_field(action="is_visible"), tc_field(action="is_enabled"), tc_field(action="get_context_menu"), tc_app(action="get_parent").

  • marks a required action parameter; the group schema treats action parameters as optional. Pass action="name" and only that action's parameters. Actions:

  • list_shortcuts(search=null, category=null, limit=20, offset=0) Browse standard 1C shortcuts offline (omit connection_id): search English/Russian descriptions or ref names; category filters by a returned category. Page with limit=1..100 and next_offset. Each alternatives entry is a keys array for send_keys. Context/focus matters; the catalogue contains standard managed-application PC shortcuts; availability depends on the platform version and configuration.

  • send_keys(keys*, ref=null) Send one chord to local 1C. Without ref, use the active window and focused control. ref addresses a window, managed form, input field or table: activates its window and, for fields/tables, verifies focus before sending. Table columns are not targets. Activation can finish pending input and switch pages; previous focus is not restored. keys: zero or more CTRL/SHIFT/ALT modifiers followed by one ref, e.g. ["CTRL","SHIFT","BACKQUOTE"] toggles panels. Letters A..Z, digits, F1..F12, ENTER/ESC/TAB, arrows, HOME/END, PAGEUP/PAGEDOWN, INSERT/DELETE/BACKSPACE and punctuation/keypad names from list_shortcuts. Requires Windows, Linux/X11 or macOS and local desktop access; on a shared Windows/Linux desktop 1C must have focus. macOS needs Accessibility permission; CTRL sends Command, ALT sends Option; INSERT is unavailable. Successful delivery does not prove command success: read the resulting state. May edit data, open dialogs or close windows. Not text input; use input_text for text. Chords need not appear in list_shortcuts. ref selects the client; otherwise set connection_id when several clients are connected. Use tc_session(action="list_connections"). Success may omit target/connection echoes and shorten window details. Use returned references unchanged in ref; re-find expired elements.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "tc_keyboard"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNo
keysNo
limitNo
actionYes
offsetNo
searchNo
categoryNo
connection_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.9.1

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and delivers: activation side effects ('can finish pending input and switch pages; previous focus is not restored'), destructive potential ('May edit data, open dialogs or close windows'), platform/permission requirements, and the caveat that delivery does not prove success. It even warns that success responses may omit echoes and that refs expire.

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?

Front-loaded one-line purpose followed by clearly delineated per-action blocks, so the length is largely earned for 8 parameters. Some slack remains: the 'Also available: tc_field(...)/tc_app(...)' cross-sell line and repeated ref-guidance at the tail add noise without new information.

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

Completeness5/5

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

Complete for a tool with no annotations and no output schema: platform matrix, permission requirements, key-mapping differences, side effects, non-guaranteed success, and ref lifecycle are all covered. Nothing an agent needs to call this correctly is missing.

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

Parameters5/5

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

Schema coverage is 0%, so this had to be described in prose and it is: keys gets accepted modifier/name syntax, ref gets target types plus the 'table columns are not targets' exclusion, and search/category/limit/offset get ranges and paging semantics. It also flags the schema/required mismatch ('* marks a required action parameter; the group schema treats action parameters as optional').

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

Purpose5/5

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

Opens with a specific verb+resource pair and enumerates both modes (live chord send vs. offline shortcut browsing). It explicitly differentiates from siblings, notably 'Not text input; use input_text for text' and the pointer to tc_field/tc_app actions.

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

Usage Guidelines5/5

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

States exactly when to omit ref (active window/focused control) versus pass it, when to use connection_id, and routes multi-client disambiguation to tc_session(action="list_connections"). It also scopes the offline path with 'omit connection_id', making the choice between the two actions unambiguous.

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