changedInput schema / allOf
Previous value: -[
- {
- "if": {
- "properties": {
- "operation": {
- "const": "get_system_info"
- }
- },
- "required": [
- "operation"
- ]
- },
- "then": {
- "properties": {
- "parameters": {
- "additionalProperties": false,
- "properties": {},
- "type": "object"
- }
- }
- }
- },
- {
- "if": {
- "properties": {
- "operation": {
- "const": "list_processes"
- }
- },
- "required": [
- "operation"
- ]
- },
- "then": {
- "properties": {
- "parameters": {
- "additionalProperties": false,
- "properties": {
- "limit": {
- "description": "Maximum number of processes to return. Default 100, maximum 1000.",
- "type": "number"
- }
- },
- "type": "object"
- }
- }
- }
- },
- {
- "if": {
- "properties": {
- "operation": {
- "const": "kill_process"
- }
- },
- "required": [
- "operation"
- ]
- },
- "then": {
- "properties": {
- "parameters": {
- "additionalProperties": false,
- "properties": {
- "pid": {
- "description": "Process id to terminate.",
- "type": "number"
- }
- },
- "required": [
- "pid"
- ],
- "type": "object"
- }
- },
- "required": [
- "parameters"
- ]
- }
- },
- {
- "if": {
- "properties": {
- "operation": {
- "const": "get_runtime_info"
- }
- },
- "required": [
- "operation"
- ]
- },
- "then": {
- "properties": {
- "parameters": {
- "additionalProperties": false,
- "properties": {},
- "type": "object"
- }
- }
- }
- },
- {
- "if": {
- "properties": {
- "operation": {
- "const": "get_runtime_stats"
- }
- },
- "required": [
- "operation"
- ]
- },
- "then": {
- "properties": {
- "parameters": {
- "additionalProperties": false,
- "properties": {},
- "type": "object"
- }
- }
- }
- },
- {
- "if": {
- "properties": {
- "operation": {
- "const": "set_config_value"
- }
- },
- "required": [
- "operation"
- ]
- },
- "then": {
- "properties": {
- "parameters": {
- "additionalProperties": false,
- "properties": {
- "key": {
- "description": "telemetryEnabled (true/false), maxReadLines, maxBufferedLines or maxOutputBytes.",
- "type": "string"
- },
- "value": {
- "description": "New value: a boolean for telemetryEnabled, a number for the limits."
- }
- },
- "required": [
- "key",
- "value"
- ],
- "type": "object"
- }
- },
- "required": [
- "parameters"
- ]
- }
- },
- {
- "if": {
- "properties": {
- "operation": {
- "const": "service"
- }
- },
- "required": [
- "operation"
- ]
- },
- "then": {
- "properties": {
- "parameters": {
- "additionalProperties": false,
- "allOf": [
- {
- "if": {
- "properties": {
- "action": {
- "enum": [
- "status",
- "start",
- "stop",
- "restart"
- ]
- }
- },
- "required": [
- "action"
- ]
- },
- "then": {
- "required": [
- "name"
- ]
- }
- }
- ],
- "properties": {
- "action": {
- "description": "Operation to perform; choose the narrowest action that directly matches the requested outcome.",
- "enum": [
- "list",
- "status",
- "start",
- "stop",
- "restart"
- ],
- "type": "string"
- },
- "name": {
- "description": "Service/unit/launchd label.",
- "type": "string"
- },
- "scope": {
- "description": "Scope of the operation; choose user scope unless the task explicitly requires a system service.",
- "enum": [
- "user",
- "system"
- ],
- "type": "string"
- }
- },
- "required": [
- "action"
- ],
- "type": "object"
- }
- },
- "required": [
- "parameters"
- ]
- }
- },
- {
- "if": {
- "properties": {
- "operation": {
- "const": "event_log"
- }
- },
- "required": [
- "operation"
- ]
- },
- "then": {
- "properties": {
- "parameters": {
- "additionalProperties": false,
- "properties": {
- "filter": {
- "description": "Optional bounded filter expression or text used to reduce returned results.",
- "type": "string"
- },
- "limit": {
- "description": "Maximum number of results to return.",
- "type": "number"
- },
- "log": {
- "description": "Windows log name.",
- "type": "string"
- },
- "query": {
- "description": "Optional platform-specific query used to reduce returned log results.",
- "type": "string"
- },
- "since": {
- "description": "Time window such as 30s, 10m, 2h, or 1d.",
- "type": "string"
- }
- },
- "type": "object"
- }
- }
- }
- },
- {
- "if": {
- "properties": {
- "operation": {
- "const": "network"
- }
- },
- "required": [
- "operation"
- ]
- },
- "then": {
- "properties": {
- "parameters": {
- "additionalProperties": false,
- "allOf": [
- {
- "if": {
- "properties": {
- "action": {
- "const": "test"
- }
- },
- "required": [
- "action"
- ]
- },
- "then": {
- "required": [
- "host",
- "port"
- ]
- }
- }
- ],
- "properties": {
- "action": {
- "description": "Operation to perform; choose the narrowest action that directly matches the requested outcome.",
- "enum": [
- "summary",
- "interfaces",
- "dns",
- "routes",
- "listeners",
- "test"
- ],
- "type": "string"
- },
- "host": {
- "description": "Host name or IP address for a bounded connectivity test.",
- "type": "string"
- },
- "port": {
- "description": "TCP port number for a connectivity test.",
- "type": "number"
- },
- "timeout_ms": {
- "description": "Bounded timeout in milliseconds.",
- "type": "number"
- }
- },
- "type": "object"
- }
- }
- }
- },
- {
- "if": {
- "properties": {
- "operation": {
- "const": "installed_apps"
- }
- },
- "required": [
- "operation"
- ]
- },
- "then": {
- "properties": {
- "parameters": {
- "additionalProperties": false,
- "properties": {
- "filter": {
- "description": "Name substring.",
- "type": "string"
- },
- "limit": {
- "description": "Maximum results; default 1000.",
- "type": "number"
- }
- },
- "type": "object"
- }
- }
- }
- },
- {
- "if": {
- "properties": {
- "operation": {
- "const": "environment"
- }
- },
- "required": [
- "operation"
- ]
- },
- "then": {
- "properties": {
- "parameters": {
- "additionalProperties": false,
- "properties": {
- "include_env": {
- "description": "Include sanitized environment variables; default false.",
- "type": "boolean"
- }
- },
- "type": "object"
- }
- }
- }
- },
- {
- "if": {
- "properties": {
- "operation": {
- "const": "audio"
- }
- },
- "required": [
- "operation"
- ]
- },
- "then": {
- "properties": {
- "parameters": {
- "additionalProperties": false,
- "allOf": [
- {
- "if": {
- "properties": {
- "action": {
- "const": "set_volume"
- }
- },
- "required": [
- "action"
- ]
- },
- "then": {
- "required": [
- "volume"
- ]
- }
- }
- ],
- "properties": {
- "action": {
- "description": "Operation to perform; choose the narrowest action that directly matches the requested outcome.",
- "enum": [
- "status",
- "set_volume",
- "mute",
- "unmute"
- ],
- "type": "string"
- },
- "volume": {
- "description": "0..100 for set_volume.",
- "type": "number"
- }
- },
- "required": [
- "action"
- ],
- "type": "object"
- }
- },
- "required": [
- "parameters"
- ]
- }
- },
- {
- "if": {
- "properties": {
- "operation": {
- "const": "power_action"
- }
- },
- "required": [
- "operation"
- ]
- },
- "then": {
- "properties": {
- "parameters": {
- "additionalProperties": false,
- "properties": {
- "action": {
- "description": "Operation to perform; choose the narrowest action that directly matches the requested outcome.",
- "enum": [
- "lock",
- "sleep",
- "restart",
- "shutdown"
- ],
- "type": "string"
- },
- "delay_seconds": {
- "description": "Optional delay, maximum 3600 seconds.",
- "type": "number"
- }
- },
- "required": [
- "action"
- ],
- "type": "object"
- }
- },
- "required": [
- "parameters"
- ]
- }
- }
-]New value: +[
+ {
+ "if": {
+ "properties": {
+ "operation": {
+ "const": "get_system_info"
+ }
+ },
+ "required": [
+ "operation"
+ ]
+ },
+ "then": {
+ "properties": {
+ "parameters": {
+ "additionalProperties": false,
+ "properties": {},
+ "type": "object"
+ }
+ }
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "operation": {
+ "const": "list_processes"
+ }
+ },
+ "required": [
+ "operation"
+ ]
+ },
+ "then": {
+ "properties": {
+ "parameters": {
+ "additionalProperties": false,
+ "properties": {
+ "limit": {
+ "description": "Maximum number of processes to return. Default 100, maximum 1000.",
+ "type": "number"
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "operation": {
+ "const": "kill_process"
+ }
+ },
+ "required": [
+ "operation"
+ ]
+ },
+ "then": {
+ "properties": {
+ "parameters": {
+ "additionalProperties": false,
+ "properties": {
+ "pid": {
+ "description": "Process id to terminate.",
+ "type": "number"
+ }
+ },
+ "required": [
+ "pid"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "parameters"
+ ]
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "operation": {
+ "const": "get_runtime_info"
+ }
+ },
+ "required": [
+ "operation"
+ ]
+ },
+ "then": {
+ "properties": {
+ "parameters": {
+ "additionalProperties": false,
+ "properties": {},
+ "type": "object"
+ }
+ }
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "operation": {
+ "const": "get_runtime_stats"
+ }
+ },
+ "required": [
+ "operation"
+ ]
+ },
+ "then": {
+ "properties": {
+ "parameters": {
+ "additionalProperties": false,
+ "properties": {},
+ "type": "object"
+ }
+ }
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "operation": {
+ "const": "set_config_value"
+ }
+ },
+ "required": [
+ "operation"
+ ]
+ },
+ "then": {
+ "properties": {
+ "parameters": {
+ "additionalProperties": false,
+ "properties": {
+ "key": {
+ "description": "telemetryEnabled (true/false), maxReadLines, maxBufferedLines or maxOutputBytes.",
+ "type": "string"
+ },
+ "value": {
+ "description": "New value: a boolean for telemetryEnabled, a number for the limits."
+ }
+ },
+ "required": [
+ "key",
+ "value"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "parameters"
+ ]
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "operation": {
+ "const": "service"
+ }
+ },
+ "required": [
+ "operation"
+ ]
+ },
+ "then": {
+ "properties": {
+ "parameters": {
+ "additionalProperties": false,
+ "allOf": [
+ {
+ "if": {
+ "properties": {
+ "action": {
+ "enum": [
+ "status",
+ "start",
+ "stop",
+ "restart"
+ ]
+ }
+ },
+ "required": [
+ "action"
+ ]
+ },
+ "then": {
+ "required": [
+ "name"
+ ]
+ }
+ }
+ ],
+ "properties": {
+ "action": {
+ "description": "Operation to perform; choose the narrowest action that directly matches the requested outcome.",
+ "enum": [
+ "list",
+ "status",
+ "start",
+ "stop",
+ "restart"
+ ],
+ "type": "string"
+ },
+ "name": {
+ "description": "Service/unit/launchd label.",
+ "type": "string"
+ },
+ "scope": {
+ "description": "Scope of the operation; choose user scope unless the task explicitly requires a system service.",
+ "enum": [
+ "user",
+ "system"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "action"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "parameters"
+ ]
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "operation": {
+ "const": "event_log"
+ }
+ },
+ "required": [
+ "operation"
+ ]
+ },
+ "then": {
+ "properties": {
+ "parameters": {
+ "additionalProperties": false,
+ "properties": {
+ "filter": {
+ "description": "Optional bounded filter expression or text used to reduce returned results.",
+ "type": "string"
+ },
+ "limit": {
+ "description": "Maximum number of results to return.",
+ "type": "number"
+ },
+ "log": {
+ "description": "Windows log name.",
+ "type": "string"
+ },
+ "query": {
+ "description": "Optional platform-specific query used to reduce returned log results.",
+ "type": "string"
+ },
+ "since": {
+ "description": "Time window such as 30s, 10m, 2h, or 1d.",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "operation": {
+ "const": "network"
+ }
+ },
+ "required": [
+ "operation"
+ ]
+ },
+ "then": {
+ "properties": {
+ "parameters": {
+ "additionalProperties": false,
+ "allOf": [
+ {
+ "if": {
+ "properties": {
+ "action": {
+ "const": "test"
+ }
+ },
+ "required": [
+ "action"
+ ]
+ },
+ "then": {
+ "required": [
+ "host",
+ "port"
+ ]
+ }
+ }
+ ],
+ "properties": {
+ "action": {
+ "description": "Operation to perform; choose the narrowest action that directly matches the requested outcome.",
+ "enum": [
+ "summary",
+ "interfaces",
+ "dns",
+ "routes",
+ "listeners",
+ "test"
+ ],
+ "type": "string"
+ },
+ "host": {
+ "description": "Host name or IP address for a bounded connectivity test.",
+ "type": "string"
+ },
+ "port": {
+ "description": "TCP port number for a connectivity test.",
+ "type": "number"
+ },
+ "timeout_ms": {
+ "description": "Bounded timeout in milliseconds.",
+ "type": "number"
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "operation": {
+ "const": "installed_apps"
+ }
+ },
+ "required": [
+ "operation"
+ ]
+ },
+ "then": {
+ "properties": {
+ "parameters": {
+ "additionalProperties": false,
+ "properties": {
+ "filter": {
+ "description": "Name substring.",
+ "type": "string"
+ },
+ "limit": {
+ "description": "Maximum results; default 1000.",
+ "type": "number"
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "operation": {
+ "const": "environment"
+ }
+ },
+ "required": [
+ "operation"
+ ]
+ },
+ "then": {
+ "properties": {
+ "parameters": {
+ "additionalProperties": false,
+ "properties": {
+ "include_env": {
+ "description": "Include sanitized environment variables; default false.",
+ "type": "boolean"
+ }
+ },
+ "type": "object"
+ }
+ }
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "operation": {
+ "const": "audio"
+ }
+ },
+ "required": [
+ "operation"
+ ]
+ },
+ "then": {
+ "properties": {
+ "parameters": {
+ "additionalProperties": false,
+ "allOf": [
+ {
+ "if": {
+ "properties": {
+ "action": {
+ "const": "set_volume"
+ }
+ },
+ "required": [
+ "action"
+ ]
+ },
+ "then": {
+ "required": [
+ "volume"
+ ]
+ }
+ }
+ ],
+ "properties": {
+ "action": {
+ "description": "Operation to perform; choose the narrowest action that directly matches the requested outcome.",
+ "enum": [
+ "status",
+ "set_volume",
+ "mute",
+ "unmute"
+ ],
+ "type": "string"
+ },
+ "volume": {
+ "description": "0..100 for set_volume.",
+ "type": "number"
+ }
+ },
+ "required": [
+ "action"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "parameters"
+ ]
+ }
+ },
+ {
+ "if": {
+ "properties": {
+ "operation": {
+ "const": "power_action"
+ }
+ },
+ "required": [
+ "operation"
+ ]
+ },
+ "then": {
+ "properties": {
+ "parameters": {
+ "additionalProperties": false,
+ "properties": {
+ "action": {
+ "description": "Operation to perform; choose the narrowest action that directly matches the requested outcome.",
+ "enum": [
+ "lock",
+ "sleep",
+ "restart",
+ "shutdown"
+ ],
+ "type": "string"
+ },
+ "delay_seconds": {
+ "description": "Optional delay in seconds, maximum 90. Longer delays are rejected because hosted calls expire before they can complete safely.",
+ "maximum": 90,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "action"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "parameters"
+ ]
+ }
+ }
+]