MCPcopy Create free account
hub / github.com/OpenBMB/BMTools / shell_run

Function shell_run

bmtools/tools/shell/api.py:153–158  ·  view source on GitHub ↗

Run commands and return final output. Queries to shell_run must ALWAYS have this structure: {\"commands\": query}.\n", and query should be a command string.

(commands: str)

Source from the content-addressed store, hash-verified

151
152 @tool.get("/shell_run")
153 def shell_run(commands: str):
154 '''Run commands and return final output.
155 Queries to shell_run must ALWAYS have this structure: {\"commands\": query}.\n",
156 and query should be a command string.
157 '''
158 return process.run(commands)
159
160 return tool

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected