M6: The MCP docs say Copy as commands write only the system clipboard, so an attached agent reads CSS or exports instead (#2524)

This commit is contained in:
bflatastic
2026-12-02 06:13:03 +07:00
parent bb5898905b
commit e083e95311
+8 -5
View File
@@ -46,11 +46,14 @@ command, and only the file it works in shows them. This is display only: no undo
saved, nothing sent to a live session's other people, and nothing changes in what the agent may
do.
An attached agent's copies stay inside FigCraft: `edit.copy`, `edit.cut` and the other copy
commands fill the app's own clipboard, which the agent's `edit.paste` uses, but never the system
clipboard, so nothing the agent does replaces what the user copied (or reads it: the agent's paste
never takes what another app put there). To hand layers to
another app, export them (`export`, `file.export`) or let the user copy them in the window.
An attached agent's copies stay inside FigCraft: `edit.copy` and `edit.cut` fill the app's own
clipboard, which the agent's `edit.paste` uses, but never the system clipboard, so nothing the
agent does replaces what the user copied (or reads it: the agent's paste never takes what another
app put there). The Copy as commands (`edit.copyAsText`, `edit.copyAsCss`, `edit.copyAsSvg`,
`edit.copyAsPng`, `edit.copyLink`) write only the system clipboard, so for an agent they put
nothing anywhere: read the CSS with `inspect.code` (`language: "css"`) and write SVG or PNG with
`file.exportSvg` or `file.export`. To hand layers to another app, export them or let the user
copy them in the window.
Attached calls are never automatically replayed after a transport failure: the app may have
applied the request before its reply was lost. The error reports that the operation may have