| mcp_call | R Documentation |
Call a tool on an MCP server
mcp_call(conn, name, arguments = list())
conn |
An MCP connection object. |
name |
Character. Tool name. |
arguments |
List. Tool arguments. |
Tool result (list with content and text).
## Not run:
conn <- mcp_connect(port = 7850)
result <- mcp_call(conn, "read_file", list(path = "README.md"))
mcp_close(conn)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.