File size: 5,470 Bytes
0068ee8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
[
  {
    "type": "function",
    "function": {
      "name": "slack_send_message",
      "description": "Send an slack message to a channel.",
      "parameters": {
        "type": "object",
        "properties": {
          "channel_id": {
            "type": "string",
            "description": "The channel id to send the message to. Example: 'D04HS7LEX17'."
          },
          "text": {
            "type": "string",
            "description": "The text of the message. Example: 'hello bob'."
          }
        },
        "required": ["channel_id", "text"]
      }
    }
  },
  {
    "type": "function",
    "function": {
      "name": "slack_send_message_dummy",
      "description": "Send an slack message to a channel without specifying channel id.",
      "parameters": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "The text of the message. Example: 'hello bob'."
          }
        },
        "required": ["text"]
      }
    }
  },
  {
    "type": "function",
    "function": {
      "name": "slack_delete_most_recent_message",
      "description": "Delete the latest message you sent in a channel.",
      "parameters": {
        "type": "object",
        "properties": {
          "channel_id": {
            "type": "string",
            "description": "The channel id to delete the message from. Example: 'D04HS7LEX17'."
          }
        },
        "required": ["channel_id"]
      }
    }
  },
  {
    "type": "function",
    "function": {
      "name": "slack_delete_most_recent_message_dummy",
      "description": "Delete the latest message you sent in a channel without specifying channel id.",
      "parameters": {
        "type": "object",
        "properties": {},
        "required": []
      }
    }
  },
  {
    "type": "function",
    "function": {
      "name": "slack_list_channels",
      "description": "List all the channels in your slack workspace.",
      "parameters": {
        "type": "object",
        "properties": {},
        "required": []
      }
    }
  },
  {
    "type": "function",
    "function": {
      "name": "slack_add_emoji_reaction",
      "description": "Add an emoji reaction to a message in the channel.",
      "parameters": {
        "type": "object",
        "properties": {
          "channel_id": {
            "type": "string",
            "description": "The id of the channel to add emoji reaction to. Example: 'D04HS7LEX17'."
          },
          "emoji_name": {
            "type": "string",
            "description": "The name of the emoji to add. Example: 'thumbsup'."
          },
          "timestamp_id": {
            "type": "string",
            "description": "The timestamp id of the message to add emoji reaction to. Example: '1712451307.299279'."
          }
        },
        "required": ["channel_id", "emoji_name", "timestamp_id"]
      }
    }
  },
  {
    "type": "function",
    "function": {
      "name": "slack_remove_latest_emoji_reaction",
      "description": "Remove an emoji reaction to the latest message in the channel.",
      "parameters": {
        "type": "object",
        "properties": {
          "channel_id": {
            "type": "string",
            "description": "The channel id to remove emoji reaction from. Example: 'D04HS7LEX17'."
          },
          "emoji_name": {
            "type": "string",
            "description": "The name of the emoji to add. Example: 'thumbsup'."
          }
        },
        "required": ["channel_id", "emoji_name"]
      }
    }
  },
  {
    "type": "function",
    "function": {
      "name": "slack_upload_file",
      "description": "Upload a file to a channel.",
      "parameters": {
        "type": "object",
        "properties": {
          "channel_id": {
            "type": "string",
            "description": "The channel id to delete the message from. Example: 'D04HS7LEX17'."
          },
          "initial_comment": {
            "type": "string",
            "description": "Initial text comments we add to the file. Example: 'Personal file'."
          },
          "file_name": {
            "type": "string",
            "description": "The name of the file to be uploaded Example: 'README.md'."
          }
        },
        "required": ["channel_id", "initial_comment", "file_name"]
      }
    }
  },
  {
    "type": "function",
    "function": {
      "name": "slack_delete_latest_file",
      "description": "Delete the latest file and its corresponding message in a channel.",
      "parameters": {
        "type": "object",
        "properties": {
          "channel_id": {
            "type": "string",
            "description": "The channel id to delete the file from. Example: 'D04HS7LEX17'."
          }
        },
        "required": ["channel_id"]
      }
    }
  },
  {
    "type": "function",
    "function": {
      "name": "slack_read_messages",
      "description": "Read the most recent k messages in a channel.",
      "parameters": {
        "type": "object",
        "properties": {
          "channel_id": {
            "type": "string",
            "description": "The channel id to read messages from. Example: 'D04HS7LEX17'."
          },
          "limit": {
            "type": "integer",
            "description": "Number of messages to be read from the channel. Default: 10. Example: 1."
          }
        },
        "required": ["channel_id"]
      }
    }
  }
]