mirror of
https://github.com/kevwillow/scaffold.git
synced 2026-10-20 08:37:34 +02:00
Add elevated field to tool schemas with platform-specific privilege escalation: gsudo on Windows, pkexec on Linux/macOS. Includes elevation checkbox in tool form, preset persistence, password cancel handling (exit 126/127), already-elevated detection, and clear error messages when elevation tools are missing. Full security audit passed — all command execution uses QProcess list-based args, no shell invocation. Also adds dark mode arrow icons for dropdowns and spinboxes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
332 lines
8.2 KiB
JSON
332 lines
8.2 KiB
JSON
{
|
|
"tool": "ping",
|
|
"binary": "ping",
|
|
"description": "Send ICMP echo requests to verify IP-level connectivity to a network host.",
|
|
"elevated": null,
|
|
"subcommands": null,
|
|
"arguments": [
|
|
{
|
|
"name": "Count",
|
|
"flag": "-n",
|
|
"short_flag": null,
|
|
"type": "integer",
|
|
"description": "Number of echo requests to send (default 4)",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "space",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null
|
|
},
|
|
{
|
|
"name": "Timeout",
|
|
"flag": "-w",
|
|
"short_flag": null,
|
|
"type": "integer",
|
|
"description": "Timeout in milliseconds to wait for each reply (default 4000)",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "space",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null
|
|
},
|
|
{
|
|
"name": "Buffer Size",
|
|
"flag": "-l",
|
|
"short_flag": null,
|
|
"type": "integer",
|
|
"description": "Send buffer size in bytes (default 32)",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "space",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null
|
|
},
|
|
{
|
|
"name": "TTL",
|
|
"flag": "-i",
|
|
"short_flag": null,
|
|
"type": "integer",
|
|
"description": "Set Time To Live",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "space",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null
|
|
},
|
|
{
|
|
"name": "Type of Service",
|
|
"flag": "-v",
|
|
"short_flag": null,
|
|
"type": "integer",
|
|
"description": "Type of Service field value (IPv4-only, deprecated)",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "space",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null
|
|
},
|
|
{
|
|
"name": "Ping Continuously",
|
|
"flag": "-t",
|
|
"short_flag": null,
|
|
"type": "boolean",
|
|
"description": "Ping the specified host until stopped",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "none",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null
|
|
},
|
|
{
|
|
"name": "Don't Fragment",
|
|
"flag": "-f",
|
|
"short_flag": null,
|
|
"type": "boolean",
|
|
"description": "Set Don't Fragment flag in packet (IPv4-only)",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "none",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null
|
|
},
|
|
{
|
|
"name": "Resolve Addresses",
|
|
"flag": "-a",
|
|
"short_flag": null,
|
|
"type": "boolean",
|
|
"description": "Resolve addresses to hostnames",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "none",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null
|
|
},
|
|
{
|
|
"name": "Record Route",
|
|
"flag": "-r",
|
|
"short_flag": null,
|
|
"type": "integer",
|
|
"description": "Record route for count hops (1-9, IPv4-only)",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": "route_option",
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "space",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null
|
|
},
|
|
{
|
|
"name": "Timestamp",
|
|
"flag": "-s",
|
|
"short_flag": null,
|
|
"type": "integer",
|
|
"description": "Timestamp for count hops (1-4, IPv4-only)",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": "route_option",
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "space",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null
|
|
},
|
|
{
|
|
"name": "Loose Source Route",
|
|
"flag": "-j",
|
|
"short_flag": null,
|
|
"type": "string",
|
|
"description": "Loose source route along host-list (IPv4-only)",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": "route_option",
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "space",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null
|
|
},
|
|
{
|
|
"name": "Strict Source Route",
|
|
"flag": "-k",
|
|
"short_flag": null,
|
|
"type": "string",
|
|
"description": "Strict source route along host-list (IPv4-only)",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": "route_option",
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "space",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null
|
|
},
|
|
{
|
|
"name": "Source Address",
|
|
"flag": "-S",
|
|
"short_flag": null,
|
|
"type": "string",
|
|
"description": "Source address to use",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "space",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null
|
|
},
|
|
{
|
|
"name": "Routing Header",
|
|
"flag": "-R",
|
|
"short_flag": null,
|
|
"type": "boolean",
|
|
"description": "Use routing header to test reverse route (IPv6-only)",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "none",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null
|
|
},
|
|
{
|
|
"name": "Compartment",
|
|
"flag": "-c",
|
|
"short_flag": null,
|
|
"type": "integer",
|
|
"description": "Routing compartment identifier",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "space",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null
|
|
},
|
|
{
|
|
"name": "Hyper-V Ping",
|
|
"flag": "-p",
|
|
"short_flag": null,
|
|
"type": "boolean",
|
|
"description": "Ping a Hyper-V Network Virtualization provider address",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "none",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null
|
|
},
|
|
{
|
|
"name": "IPv4",
|
|
"flag": "-4",
|
|
"short_flag": null,
|
|
"type": "boolean",
|
|
"description": "Force using IPv4",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": "ip_version",
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "none",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null
|
|
},
|
|
{
|
|
"name": "IPv6",
|
|
"flag": "-6",
|
|
"short_flag": null,
|
|
"type": "boolean",
|
|
"description": "Force using IPv6",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": "ip_version",
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "none",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null
|
|
},
|
|
{
|
|
"name": "Destination",
|
|
"flag": "DESTINATION",
|
|
"short_flag": null,
|
|
"type": "string",
|
|
"description": "Target host -- IP address or hostname",
|
|
"required": true,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "space",
|
|
"positional": true,
|
|
"validation": null,
|
|
"examples": ["8.8.8.8", "1.1.1.1", "google.com", "localhost", "192.168.1.1"]
|
|
}
|
|
]
|
|
} |