|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Internet and Network > MCP. - MCP (Model-Context Protocol) server operations > Memory Bank - Commands for storing and recalling data > MCP Commands - Memory Bank |
MiniRobot Language (MRL) - MCP Memory Bank
MEM.FromClip
Copy system clipboard to memory
Syntax
MEM.FromClip|$$KEY
Parameters
$$KEY
The key name under which to store the clipboard content.
Return Value
None. The clipboard content is stored in memory.
Description
MEM.FromClip retrieves the current content from the system clipboard and stores it in the MCP Memory Bank under the specified key name. This allows external data copied from other applications to be processed by robot scripts.
If the clipboard is empty or contains non-text data, the behavior depends on the MCP implementation (typically stores empty string or fails silently).
Examples
Example 1: Capture clipboard content
' User copies text from another application
' Capture it into memory
MEM.FromClip|$$ClipboardData
' Now process the data
MEM.R|$$ClipboardData|$$Text
LBL.|Captured: $$Text
Example 2: Clipboard workflow
' Get external data
MEM.FromClip|$$Input
' Process it
MEM.R|$$Input|$$Raw
UCA.$$Raw|$$Upper
' Put result back to clipboard
MEM.S|$$Output|$$Upper
MEM.ToClip|$$Output
Remarks
• Only text content is retrieved from the clipboard.
• If the clipboard is empty, an empty string is stored.
• Multi-line clipboard content is preserved.
• The Memory Bank feature requires the RESOURCES capability in MCP server configuration.
Related Commands
• MEM.ToClip - Copy memory to clipboard
• MEM.STO - Store value directly