4d-find-command
4D Command Finder
Search for 4D commands by keyword.
Prerequisites
Requires tool4d to access the gram.4dsyntax file:
- Install 4D-Analyzer extension in VS Code/Antigravity, OR
- Set
TOOL4Denvironment variable to point to tool4d executable
Usage
python3 scripts/find_command.py <search_term> [--verbose]
Options
--verboseor-v: Add category, summary, and parameter details for each command--summary: Add summary lines without verbose categories
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
More from e-marchand/skills
4d-check-syntax
Check syntax and compile a 4D project to find errors and type issues. Use this skill when the user wants to compile, check syntax, or validate a 4D project. Creates a _compile method if not present, then runs it using tool4d. Returns compilation errors in JSON format for easy parsing.
114d-run
Run a 4D project method. Use tool4d by default for fast dataless execution, and fall back to a user-provided 4D executable path when the method needs a real database or runtime features unavailable in tool4d. Includes Python helpers for macOS and Windows.
94d-clean-project
Clean a 4D project by removing generated files, caches, and system artifacts.
64d-add-dependency
Add dependencies to a 4D project. Use when the user wants to add a component, library, or dependency to their 4D project. Supports GitHub repos (owner/repo format), GitHub URLs (with automatic tag extraction from release URLs), and local folder paths. Handles dependencies.json and environment4d.json configuration.
64d-create-project
Create a new 4D project from scratch. Use this skill when the user wants to initialize, create, or start a new 4D project. Creates the required folder structure and .4DProject configuration file.
64d-doc-lookup
Look up 4D documentation for commands, classes, or language concepts. Use when the user asks about a 4D command's syntax, parameters, or usage, needs class API reference, or wants to understand a 4D language concept. Resolves names to developer.4d.com URLs and optionally fetches page content.
5