4d-doc-lookup
4D Doc Lookup
Look up documentation from developer.4d.com for commands, classes, and topics.
Usage
# Get URL only (fast, no network needed)
python3 scripts/doc_lookup.py "JSON Parse"
# Fetch and extract page content
python3 scripts/doc_lookup.py "collection" --fetch
# Limit extracted text length
python3 scripts/doc_lookup.py "ORDA" --fetch --max-chars 2000
Query Types
The script auto-detects the query type:
| Query | Resolves to | Example URL |
|---|---|---|
| Command name | /commands/<slug> |
ALERT → /commands/alert |
| Class name | /API/<ClassName> |
collection → /API/CollectionClass |
4D.File, cs.DataStore |
/API/<ClassName> |
4D.File → /API/FileClass |
| Topic keyword | /Concepts/<path> |
orda → /ORDA/overview |
Output
{
"query": "JSON Parse",
"type": "command",
"url": "https://developer.4d.com/docs/commands/json-parse"
}
With --fetch, adds "content" field with extracted text.
Supported Topics
orda, variables, methods, classes, parameters, shared, error handling, data types, collections, objects, forms, listbox, web server, rest, compiler, components, architecture
Combining with 4d-find-command
Use 4d-find-command to discover command names, then 4d-doc-lookup to get full documentation:
# Step 1: Find commands
python3 scripts/find_command.py json
# Step 2: Look up specific command
python3 scripts/doc_lookup.py "JSON Parse" --fetch
More from e-marchand/skills
4d-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-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.
6skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
54d-publish-github
Publish a 4D project to GitHub using gh CLI. Use this skill when the user wants to publish, push, or share a 4D project to GitHub. Creates remote repository, initializes git, adds CI/CD workflows for building and releasing. Supports release-on-tag or release-on-create workflows.
54d-project-info
Analyze a 4D project and produce a structured summary. Use when the user wants to understand a 4D project's structure, get an overview of methods/classes/forms/dependencies, onboard onto a codebase, or when context about the project is needed before performing other tasks.
4