Skip to content
Development
Command

/docs

Look up Protheus documentation - native functions, SX data dictionary, REST APIs, MV parameters, and framework reference

From plugin
advpl-specialist
17613 skills10 agents13 commands2 hooks
Install
> /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.md
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
Read more
Ships withadvpl-specialist

Plugin para Claude Code especializado em ADVPL e TLPP para desenvolvimento no ecossistema TOTVS Protheus — para desenvolvedores e consultores funcionais. Documentacao completa:

Get the whole plugin