File size: 817 Bytes
e67043b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Shell Commands

Contributor: [Sihan Zhao](https://github.com/Sarah816)

# Terminal Tool

This tool allows you to run shell commands on a machine.

## Setup

The tool is initialized with the following parameters:

- **name_for_model**: "Terminal"
- **description_for_model**: "Run shell commands on this machine."
- **logo_url**: "https://your-app-url.com/.well-known/logo.png"
- **contact_email**: "[email protected]"
- **legal_info_url**: "[email protected]"

## Endpoint

The tool provides the following endpoint:

- **/shell_run**: Run commands and return final output. The input should be a command string.

## Function Description

- **shell_run(commands: str)**: This function runs commands and returns the final output. The commands should be a string. The function returns the output of the executed commands.