tc_allow_write
Allow or remove session-only write permissions for PLC variables by specifying a case-insensitive pattern, avoiding config edits and reconnects.
Instructions
Add (or remove) a write allow-list pattern for THIS session only — the in-session alternative to editing twincat_mcp.toml and reconnecting. fnmatch, case-insensitive: 'GVL_Test.*', 'MAIN.fbDispense.rSetpoint'. Control-class: needs a confirmation (prompt or confirm_token from tc_request_confirmation(action='tc_allow_write', target=''), or target='-' to remove). The deny list still wins; the change is audited and lost at the next server start.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remove | No | ||
| pattern | Yes | ||
| confirm_token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||