|
| 1 | +[ |
| 2 | + { |
| 3 | + "name": "process_start", |
| 4 | + "description": "Launch a new process with specified arguments and environment variables", |
| 5 | + "arguments": [ |
| 6 | + { |
| 7 | + "name": "executable", |
| 8 | + "type": "string", |
| 9 | + "desc": "Path to executable" |
| 10 | + }, |
| 11 | + { |
| 12 | + "name": "args", |
| 13 | + "type": "array", |
| 14 | + "desc": "Command-line arguments" |
| 15 | + }, |
| 16 | + { |
| 17 | + "name": "cwd", |
| 18 | + "type": "string", |
| 19 | + "desc": "Working directory" |
| 20 | + }, |
| 21 | + { |
| 22 | + "name": "env", |
| 23 | + "type": "object", |
| 24 | + "desc": "Environment variables" |
| 25 | + } |
| 26 | + ] |
| 27 | + }, |
| 28 | + { |
| 29 | + "name": "process_terminate", |
| 30 | + "description": "Terminate a process gracefully or forcefully", |
| 31 | + "arguments": [ |
| 32 | + { |
| 33 | + "name": "pid", |
| 34 | + "type": "number", |
| 35 | + "desc": "Process ID" |
| 36 | + }, |
| 37 | + { |
| 38 | + "name": "force", |
| 39 | + "type": "boolean", |
| 40 | + "desc": "Use SIGKILL instead of SIGTERM" |
| 41 | + } |
| 42 | + ] |
| 43 | + }, |
| 44 | + { |
| 45 | + "name": "process_get_stats", |
| 46 | + "description": "Get process resource usage statistics", |
| 47 | + "arguments": [ |
| 48 | + { |
| 49 | + "name": "pid", |
| 50 | + "type": "number", |
| 51 | + "desc": "Process ID" |
| 52 | + } |
| 53 | + ] |
| 54 | + }, |
| 55 | + { |
| 56 | + "name": "process_send_stdin", |
| 57 | + "description": "Send input to process stdin", |
| 58 | + "arguments": [ |
| 59 | + { |
| 60 | + "name": "pid", |
| 61 | + "type": "number", |
| 62 | + "desc": "Process ID" |
| 63 | + }, |
| 64 | + { |
| 65 | + "name": "data", |
| 66 | + "type": "string", |
| 67 | + "desc": "Data to send" |
| 68 | + } |
| 69 | + ] |
| 70 | + }, |
| 71 | + { |
| 72 | + "name": "process_get_output", |
| 73 | + "description": "Get captured process output", |
| 74 | + "arguments": [ |
| 75 | + { |
| 76 | + "name": "pid", |
| 77 | + "type": "number", |
| 78 | + "desc": "Process ID" |
| 79 | + } |
| 80 | + ] |
| 81 | + }, |
| 82 | + { |
| 83 | + "name": "process_list", |
| 84 | + "description": "List all managed processes", |
| 85 | + "arguments": [] |
| 86 | + }, |
| 87 | + { |
| 88 | + "name": "process_get_status", |
| 89 | + "description": "Get detailed process status", |
| 90 | + "arguments": [ |
| 91 | + { |
| 92 | + "name": "pid", |
| 93 | + "type": "number", |
| 94 | + "desc": "Process ID" |
| 95 | + } |
| 96 | + ] |
| 97 | + }, |
| 98 | + { |
| 99 | + "name": "process_create_group", |
| 100 | + "description": "Create a process group", |
| 101 | + "arguments": [ |
| 102 | + { |
| 103 | + "name": "name", |
| 104 | + "type": "string", |
| 105 | + "desc": "Group name" |
| 106 | + } |
| 107 | + ] |
| 108 | + }, |
| 109 | + { |
| 110 | + "name": "process_add_to_group", |
| 111 | + "description": "Add a process to a group", |
| 112 | + "arguments": [ |
| 113 | + { |
| 114 | + "name": "groupId", |
| 115 | + "type": "string", |
| 116 | + "desc": "Group identifier" |
| 117 | + }, |
| 118 | + { |
| 119 | + "name": "pid", |
| 120 | + "type": "number", |
| 121 | + "desc": "Process ID" |
| 122 | + } |
| 123 | + ] |
| 124 | + }, |
| 125 | + { |
| 126 | + "name": "process_terminate_group", |
| 127 | + "description": "Terminate all processes in a group", |
| 128 | + "arguments": [ |
| 129 | + { |
| 130 | + "name": "groupId", |
| 131 | + "type": "string", |
| 132 | + "desc": "Group identifier" |
| 133 | + } |
| 134 | + ] |
| 135 | + }, |
| 136 | + { |
| 137 | + "name": "process_start_service", |
| 138 | + "description": "Start a long-running service with auto-restart", |
| 139 | + "arguments": [ |
| 140 | + { |
| 141 | + "name": "name", |
| 142 | + "type": "string", |
| 143 | + "desc": "Service name" |
| 144 | + }, |
| 145 | + { |
| 146 | + "name": "executable", |
| 147 | + "type": "string", |
| 148 | + "desc": "Path to executable" |
| 149 | + } |
| 150 | + ] |
| 151 | + }, |
| 152 | + { |
| 153 | + "name": "process_stop_service", |
| 154 | + "description": "Stop a service and disable auto-restart", |
| 155 | + "arguments": [ |
| 156 | + { |
| 157 | + "name": "serviceId", |
| 158 | + "type": "string", |
| 159 | + "desc": "Service identifier" |
| 160 | + } |
| 161 | + ] |
| 162 | + } |
| 163 | +] |
0 commit comments