MrMoz33/tokioai-coder-iot
0
1[2 {3 "type": "function",4 "function": {5 "name": "execute_local",6 "description": "Execute a shell command on the local machine. Use for system operations: install packages, check processes, network scans, file operations.",7 "parameters": {8 "type": "object",9 "properties": {10 "command": {11 "type": "string",12 "description": "Shell command to execute (bash)"13 },14 "timeout": {15 "type": "integer",16 "description": "Timeout in seconds (default 30, max 120)"17 }18 },19 "required": ["command"]20 }21 }22 },23 {24 "type": "function",25 "function": {26 "name": "execute_raspi",27 "description": "Execute a command on a Raspberry Pi via SSH.",28 "parameters": {29 "type": "object",30 "properties": {31 "command": {32 "type": "string",33 "description": "Command to run on Raspi"34 },35 "timeout": {36 "type": "integer",37 "description": "Timeout in seconds (default 30, max 120)"38 }39 },40 "required": ["command"]41 }42 }43 },44 {45 "type": "function",46 "function": {47 "name": "execute_gcp",48 "description": "Execute a command on a GCP VM via SSH.",49 "parameters": {50 "type": "object",51 "properties": {52 "command": {53 "type": "string",54 "description": "Command to run on GCP"55 },56 "timeout": {57 "type": "integer",58 "description": "Timeout in seconds (default 30, max 120)"59 }60 },61 "required": ["command"]62 }63 }64 },65 {66 "type": "function",67 "function": {68 "name": "execute_router",69 "description": "Execute a command on the router via SSH (root).",70 "parameters": {71 "type": "object",72 "properties": {73 "command": {74 "type": "string",75 "description": "Command to run on router as root"76 }77 },78 "required": ["command"]79 }80 }81 },82 {83 "type": "function",84 "function": {85 "name": "read_file",86 "description": "Read a file from local or remote systems.",87 "parameters": {88 "type": "object",89 "properties": {90 "path": {91 "type": "string",92 "description": "File path. Use raspi:/path or gcp:/path for remote"93 },94 "lines": {95 "type": "integer",96 "description": "Max lines to read (default: all)"97 }98 },99 "required": ["path"]100 }101 }102 },103 {104 "type": "function",105 "function": {106 "name": "write_file",107 "description": "Write content to a file.",108 "parameters": {109 "type": "object",110 "properties": {111 "path": {112 "type": "string",113 "description": "File path. Use raspi:/path or gcp:/path for remote"114 },115 "content": {116 "type": "string",117 "description": "File content to write"118 }119 },120 "required": ["path", "content"]121 }122 }123 },124 {125 "type": "function",126 "function": {127 "name": "edit_file",128 "description": "Replace a specific string in a file. old_text must be unique.",129 "parameters": {130 "type": "object",131 "properties": {132 "path": {133 "type": "string",134 "description": "File path"135 },136 "old_text": {137 "type": "string",138 "description": "Exact text to find (must be unique)"139 },140 "new_text": {141 "type": "string",142 "description": "Replacement text"143 }144 },145 "required": ["path", "old_text", "new_text"]146 }147 }148 },149 {150 "type": "function",151 "function": {152 "name": "search_files",153 "description": "Search for text patterns across files. Like grep -rn.",154 "parameters": {155 "type": "object",156 "properties": {157 "pattern": {158 "type": "string",159 "description": "Text or regex pattern to search"160 },161 "path": {162 "type": "string",163 "description": "Directory to search"164 },165 "glob": {166 "type": "string",167 "description": "File filter glob (e.g., '*.py')"168 }169 },170 "required": ["pattern"]171 }172 }173 },174 {175 "type": "function",176 "function": {177 "name": "robot_vision",178 "description": "Capture a photo from the robot's camera and analyze it with a vision AI model.",179 "parameters": {180 "type": "object",181 "properties": {182 "question": {183 "type": "string",184 "description": "What to look for in the image (e.g. 'how many people?', 'describe the room')"185 }186 },187 "required": []188 }189 }190 },191 {192 "type": "function",193 "function": {194 "name": "diagnose",195 "description": "Run system health diagnostics.",196 "parameters": {197 "type": "object",198 "properties": {199 "target": {200 "type": "string",201 "enum": ["local", "raspi", "gcp", "router", "all"],202 "description": "Target system"203 }204 },205 "required": ["target"]206 }207 }208 },209 {210 "type": "function",211 "function": {212 "name": "memory",213 "description": "Persistent memory across sessions. Actions: read, write, append, clear.",214 "parameters": {215 "type": "object",216 "properties": {217 "action": {218 "type": "string",219 "enum": ["read", "write", "append", "clear"],220 "description": "Memory operation"221 },222 "content": {223 "type": "string",224 "description": "Content to write/append"225 }226 },227 "required": ["action"]228 }229 }230 },231 {232 "type": "function",233 "function": {234 "name": "task",235 "description": "Persistent task tracker across sessions.",236 "parameters": {237 "type": "object",238 "properties": {239 "action": {240 "type": "string",241 "enum": ["add", "update", "list", "remove", "clear_done"],242 "description": "Task operation"243 },244 "task": {245 "type": "string",246 "description": "Task description (for add)"247 },248 "id": {249 "type": "integer",250 "description": "Task ID (for update/remove)"251 },252 "status": {253 "type": "string",254 "enum": ["pending", "in_progress", "done", "blocked"],255 "description": "New status"256 },257 "note": {258 "type": "string",259 "description": "Note to add"260 }261 },262 "required": ["action"]263 }264 }265 }266]267 