|
<< 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.ToClip
Copy memory value to system clipboard
Syntax
MEM.ToClip|$$KEY
Parameters
$$KEY
The key name of the value to copy to the system clipboard.
Return Value
None. The value is copied to the system clipboard.
Description
MEM.ToClip copies the value associated with the specified key from the MCP Memory Bank to the system clipboard. This allows the data to be pasted into other applications or shared between different processes.
If the key does not exist, the clipboard may be cleared or left unchanged depending on the MCP implementation.
Examples
Example 1: Copy result to clipboard
' Store some data
MEM.S|$$Result|Important information to share
' Copy to clipboard for manual paste
MEM.ToClip|$$Result
LBL.|Result copied to clipboard
Example 2: Workflow with clipboard
' Process data and store result
MEM.S|$$Processed|Formatted output text
' Send to clipboard for external use
MEM.ToClip|$$Processed
Remarks
• The clipboard content can be pasted into any application that accepts text.
• The previous clipboard content is overwritten.
• Multi-line values are supported and will be pasted with line breaks intact.
• The Memory Bank feature requires the RESOURCES capability in MCP server configuration.
Related Commands
• MEM.FromClip - Copy from clipboard to memory
• MEM.RCL - Recall memory value to variable