/docs
Look up Protheus documentation - native functions, SX data dictionary, REST APIs, MV parameters, and framework reference
> /plugin marketplace add thalysjuvenal/advpl-specialist > /plugin install advpl-specialist@advpl-specialist-marketplace
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/docs
Context preview
What this command does when you run it.
Look up Protheus documentation - native functions, SX data dictionary, REST APIs, MV parameters, and framework reference
Command definition
docs.mddescription: Look up Protheus documentation - native functions, SX data dictionary, REST APIs, MV parameters, and framework reference
allowed-tools: Read, Glob, Grep, Bash, Agent, WebSearch, WebFetch
argument-hint: "<term> [--source tdn|local] [--type function|sx|api|param]"
/advpl-specialist:docs
**IMPORTANT:** Always respond in the same language the user is writing in. If the user writes in Portuguese, respond in Portuguese. If in English, respond in English. Adapt all explanations and suggestions to the user's language.
Look up documentation for Protheus functions, APIs, tables, and parameters.
Usage
/advpl-specialist:docs <term> [options]
Options
| Flag | Description | Default | |------|------------|---------| | `--source` | Search source: `local`, `tdn`, or `both` | both (local first) | | `--type` | Filter by type: `function`, `sx`, `api`, `param` | auto-detect |
Process
1. **Parse query** - Extract search term and options 2. **Auto-detect type** - If not specified:
- Starts with SX/SI -> sx
- Starts with MV_ -> param
- Contains API/REST -> api
- Otherwise -> function
3. **Search local** - Check `skills/protheus-reference/` supporting files 4. **Search TDN** - If not found locally or --source tdn, search online 5. **Present results** - Syntax, parameters, return type, example
Examples
# Look up a function
/advpl-specialist:docs FWExecView
# Look up a data dictionary table
/advpl-specialist:docs SX2 --type sx
# Look up a system parameter
/advpl-specialist:docs MV_ESTADO --type param
# Force TDN search
/advpl-specialist:docs MsExecAuto --source tdn
# Look up REST API pattern
/advpl-specialist:docs FWRest --type api
Output
For functions:
- Syntax with parameter types
- Parameter table (name, type, description, required)
- Return type and description
- Code example
- Related functions
For SX tables:
- Table purpose
- Key fields with types and descriptions
- How to access programmatically
For MV parameters:
- Parameter purpose
- Default value
- How to read (GetMV/SuperGetMV)
- Module that uses it
For REST APIs:
- Endpoint pattern
- HTTP methods
- Request/response format
- Authentication requirements
Read more
description: Look up Protheus documentation - native functions, SX data dictionary, REST APIs, MV parameters, and framework reference allowed-tools: Read, Glob, Grep, Bash, Agent, WebSearch, WebFetch argument-hint: "<term> [--source tdn|local] [--type function|sx|api|param]"
/advpl-specialist:docs
**IMPORTANT:** Always respond in the same language the user is writing in. If the user writes in Portuguese, respond in Portuguese. If in English, respond in English. Adapt all explanations and suggestions to the user's language.
Look up documentation for Protheus functions, APIs, tables, and parameters.
Usage
/advpl-specialist:docs <term> [options]
Options
| Flag | Description | Default | |------|------------|---------| | `--source` | Search source: `local`, `tdn`, or `both` | both (local first) | | `--type` | Filter by type: `function`, `sx`, `api`, `param` | auto-detect |
Process
1. **Parse query** - Extract search term and options 2. **Auto-detect type** - If not specified:
- Starts with SX/SI -> sx
- Starts with MV_ -> param
- Contains API/REST -> api
- Otherwise -> function
3. **Search local** - Check `skills/protheus-reference/` supporting files 4. **Search TDN** - If not found locally or --source tdn, search online 5. **Present results** - Syntax, parameters, return type, example
Examples
# Look up a function /advpl-specialist:docs FWExecView # Look up a data dictionary table /advpl-specialist:docs SX2 --type sx # Look up a system parameter /advpl-specialist:docs MV_ESTADO --type param # Force TDN search /advpl-specialist:docs MsExecAuto --source tdn # Look up REST API pattern /advpl-specialist:docs FWRest --type api
Output
For functions:
- Syntax with parameter types
- Parameter table (name, type, description, required)
- Return type and description
- Code example
- Related functions
For SX tables:
- Table purpose
- Key fields with types and descriptions
- How to access programmatically
For MV parameters:
- Parameter purpose
- Default value
- How to read (GetMV/SuperGetMV)
- Module that uses it
For REST APIs:
- Endpoint pattern
- HTTP methods
- Request/response format
- Authentication requirements
Plugin para Claude Code especializado em ADVPL e TLPP para desenvolvimento no ecossistema TOTVS Protheus — para desenvolvedores e consultores funcionais. Documentacao completa:
Other commands on advpl-specialist.
- /advpr
Gera scripts de automação de testes ADVPR (Advanced Protheus Robot) - TestSuite, TestGroup, TestCase para rotinas MVC, ExecAuto, relatórios, processamento, webservice, Smart View, TOTVS Message e SmartLink
Open command - /diagnose
Diagnose errors and problems in ADVPL/TLPP code - compilation errors, runtime errors, performance issues, and log analysis
Open command - /document
Generate technical documentation from ADVPL/TLPP source code - Protheus.doc headers, routine docs, API docs
Open command - /explain
Explain ADVPL/TLPP code in plain language for developers and functional consultants
Open command - /generate
Generate ADVPL/TLPP code - functions, classes, MVC structures, REST APIs, Web Services, and entry points for TOTVS Protheus
Open command - /migrate
Migrate ADVPL procedural code to TLPP object-oriented code with classes, namespaces, and modern patterns
Open command

