skills

4D Command Finder

Search for 4D commands by keyword.

Prerequisites

Requires tool4d to access the gram.4dsyntax file:

Usage

python3 scripts/find_command.py <search_term> [--verbose]

Options

Examples

# Simple search
python3 scripts/find_command.py json

# Verbose output with category + parameter details
python3 scripts/find_command.py json --verbose

# Signature + summary only
python3 scripts/find_command.py json --summary

Output

Simple mode (typed signature, using bundled 4D syntax metadata when available):

JSON Parse ( jsonString : Text {; type : Integer}{; *} ) : any
JSON Stringify ( value : Object, any {; *} ) : Text
JSON Validate ( vJson : Object ; vSchema : Object ) : Object

Summary mode:

JSON Parse ( jsonString : Text {; type : Integer}{; *} ) : any
  The JSON Parse command parses the contents of a JSON-formatted string and extracts values that you can store in a 4D field or variable.

Verbose mode (adds category, summary, and parameter details):

JSON Parse ( jsonString : Text {; type : Integer}{; *} ) : any [JSON]
  The JSON Parse command parses the contents of a JSON-formatted string and extracts values that you can store in a 4D field or variable.
  jsonString [Text, ->]: JSON string to parse
  type [Integer, ->]: Type in which to convert the values
  * [Operator, ->]: Adds line position and offset of each property if returned value is an object
  result [any, <-]: Values extracted from JSON string