mirror of
https://github.com/kevwillow/scaffold.git
synced 2026-10-20 08:37:34 +02:00
Add _format metadata key to tool schemas and presets to prevent cross-loading (e.g., loading a preset as a tool schema). Three-tier enforcement: correct value loads silently, missing value warns (tools) or accepts silently (presets for backwards compat), wrong value hard rejects with clear error. - Add _format check to tool loading path (after JSON parse, before validate_tool) - Add _format check to preset loading path (silent for missing) - Include _format: scaffold_preset in serialize_values output - Add _format: scaffold_schema to all 10 bundled tool schemas - Bundle example.json as a reference schema demonstrating every feature - Add schema.md (JSON schema specification) to the repo - Update PROMPT.txt and schema.md with _format in spec and examples - Add Section 45 tests (format marker behavior, 17 new assertions) - Patch test_manual_verification.py for missing-format dialog handling Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
340 lines
8.3 KiB
JSON
340 lines
8.3 KiB
JSON
{
|
|
"_format": "scaffold_schema",
|
|
"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"
|
|
]
|
|
}
|
|
]
|
|
}
|