Build a frozen descriptor; throw OCToolError on invalid data.
Readonlyaccesslocal or remote.
ReadonlydeprecatedThe tool is kept only as an alias.
ReadonlydescriptionThe model-facing description.
ReadonlydestructiveA change the tool makes may destroy data.
ReadonlyfuncThe function that does the work.
ReadonlyidempotentRepeating a call has no further effect.
ReadonlyinputJSON Schema of the arguments.
ReadonlymetaFree-form JSON data for the runtime.
ReadonlynameLowercase snake_case, at most 48 characters.
ReadonlyoutputJSON Schema of the result, or null.
ReadonlyreadThe tool changes nothing.
Readonlyresultrecords or artifact.
ReadonlytagsWhat the tool is, for a host to select by; recommended or advanced.
ReadonlytargetThe remote system the tool reaches, or null.
ReadonlytitleA display name for a person, or null.
One agent tool, described once, convertible to any vendor's shape.
The fields mirror the descriptor's wire keys in camelCase (
input_schemaisinputSchema). The constructor checks the structural invariants and throws OCToolError on the first one that fails, including a field the descriptor does not have. Instances are frozen.