Skip to main content
Glama

send_program_script

Send program scripts to Universal Robots at specified IP addresses to control industrial robots through voice or text commands.

Instructions

发送脚本到指定IP的机器人。 IP:机器人地址 script:脚本内容

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ipYes
scriptYes

Implementation Reference

  • The handler function for the 'send_program_script' tool, registered via @mcp.tool() decorator. It checks the robot connection, sends the script using RealTimeClient.SendProgram, and returns success or error message.
    @mcp.tool() def send_program_script(ip: str, script: str): """发送脚本到指定IP的机器人。 IP:机器人地址 script:脚本内容""" try: if '连接失败' in link_check(ip): return return_msg(f"与机器人的连接已断开。") robot_list[ip].robotConnector.RealTimeClient.SendProgram(script) time.sleep(1) logger.info(f"发送脚本:{script}") return return_msg(f"脚本程序已发送,请确认执行结果。") except Exception as e: logger.error(f"发送脚本失败: {str(e)}") return return_msg(f"发送脚本失败: {str(e)}")

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nonead/nUR-MCP-SERVER'

If you have feedback or need assistance with the MCP directory API, please join our Discord server