You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
clipboard_read returns the entire clipboard with no truncation and no size parameter.
Repro
During a playtest, a single clipboard_read() call returned 21,608 characters straight into the model context. There is no maxChars argument and no truncation notice.
Impact
Every other read path in this server is bounded — read_file truncates at 500 lines, cliOutput.maxOutputChars is 50,000, batchOperations.maxAggregateChars is 200,000. Clipboard is the one unbounded ingress, and clipboards routinely hold whole documents.
Fix
Add a maxChars parameter (default from config, e.g. clipboard.maxChars: 20000), return truncated: true plus the original length when the cap is hit, and note the cap in the tool description.
Activity