Looks up Protheus native functions, SX data dictionary tables, REST API endpoints, MV parameters, and TOTVS docs via local references or TDN web searches with Playwright fallback.
From advpl-specialistnpx claudepluginhub thalysjuvenal/advpl-specialist --plugin advpl-specialistThis skill uses the workspace's default tool permissions.
native-functions.mdrest-api-reference.mdrestricted-functions.mdsx-dictionary.mdProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Reference guide for the TOTVS Protheus ecosystem. Provides quick access to native functions, data dictionary (SX tables), REST API endpoints, and system parameters (MV_*).
digraph lookup {
"Need function/API info?" [shape=diamond];
"Check native-functions.md" [shape=box];
"Found?" [shape=diamond];
"Return result" [shape=box];
"Search TDN online" [shape=box];
"WebSearch: site:tdn.totvs.com <term>" [shape=box];
"Fetch failed?" [shape=diamond];
"Playwright fallback" [shape=box];
"Need function/API info?" -> "Check native-functions.md";
"Check native-functions.md" -> "Found?";
"Found?" -> "Return result" [label="yes"];
"Found?" -> "Search TDN online" [label="no"];
"Search TDN online" -> "WebSearch: site:tdn.totvs.com <term>";
"WebSearch: site:tdn.totvs.com <term>" -> "Fetch failed?";
"Fetch failed?" -> "Return result" [label="no"];
"Fetch failed?" -> "Playwright fallback" [label="yes"];
"Playwright fallback" -> "Return result";
}
WebSearch using query: site:tdn.totvs.com <function_name>WebFetch to extract detailsWebSearch ou WebFetch falhar, use Playwright MCP:
browser_navigate para a URL do TDN (se disponÃvel) ou buscar em https://tdn.totvs.combrowser_snapshot para extrair texto; se insuficiente, browser_take_screenshot para captura visualbrowser_close ao finalizar para liberar recursosBefore recommending any function, ALWAYS check if it appears in restricted-functions.md. TOTVS maintains a list of 195+ functions/classes that are internal property and MUST NOT be used in custom code. Some have their compilation blocked since release 12.1.33.
See restricted-functions.md for the complete list and supported alternatives.
| Category | Common Functions | File Reference |
|---|---|---|
| String | Alltrim, SubStr, StrTran, Pad*, Upper, Lower | native-functions.md |
| Date/Time | dDataBase, DtoS, StoD, Day, Month, Year | native-functions.md |
| Array | aAdd, aDel, aSize, aScan, aSort, aClone | native-functions.md |
| Database | DbSelectArea, DbSetOrder, DbSeek, RecLock, MsUnlock | native-functions.md |
| Interface | MsgInfo, MsgYesNo, MsgAlert, FWExecView, Enchoice | native-functions.md |
| File I/O | FOpen, FRead, FWrite, FClose, FErase, Directory | native-functions.md |
| Network | HttpGet, HttpPost, FWRest, WsRestFul | native-functions.md |
| System | GetMV, PutMV, SuperGetMV, Conout, FWLogMsg | native-functions.md |
| Company/Branch | FWCodFil, FWCodEmp, FWFilial, FWCompany, xFilial | native-functions.md |
| JsonObject | New, FromJSON, toJSON, GetNames, HasProperty, GetJsonObject, GetJsonText, GetJsonValue, DelName, Set | native-functions.md |
| TWsdlManager | New, ParseURL, ParseFile, SetOperation, SendSoapMsg, GetParsedResponse, GetSoapResponse, GetSoapMsg, ListOperations, SetPort, SetValue | native-functions.md |
| Browse/UI | FwBrowse, FWMarkBrowse, FWBrwColumn, FWBrwRelation, FWLegend, FWCalendar, FWSimpEdit | native-functions.md |
| Process | FWGridProcess, tNewProcess | native-functions.md |
| WorkArea | FwGetArea, FwRestArea | native-functions.md |
| User | FwGetUserName, UsrRetName | native-functions.md |
| Dialog | FWMsgRun, FWInputBox | native-functions.md |
| Memory | FWFreeObj, FWFreeVar | native-functions.md |
| Date ISO | Fw8601ToDate, FWDateTo8601 | native-functions.md |
| URL Encode | FWHttpEncode, FWURIDecode | native-functions.md |
| Semaphore | MayIUseCode, MPCriaNumS | native-functions.md |
| Dictionary | FWX3Titulo, FWX2CHAVE, FWX2Unico | native-functions.md |
| Interface | SaveInter, RestInter | native-functions.md |
| ExecAuto | MsGetDAuto, MsExecAuto, FWMVCRotAuto | native-functions.md |
| Restricted | StaticCall, PTInternal, PARAMBOX, etc. | restricted-functions.md |
| Table | Purpose |
|---|---|
| SX1 | Perguntas (parameters for reports/routines) |
| SX2 | Tabelas (table definitions) |
| SX3 | Campos (field definitions) |
| SX5 | Tabelas genericas (generic lookup tables) |
| SX6 | Parametros (MV_* system parameters) |
| SX7 | Gatilhos (field triggers) |
| SX9 | Relacionamentos (table relationships) |
| SXB | Consultas padrao (standard queries) |
| SIX | Indices (index definitions) |
See sx-dictionary.md for complete structure with field descriptions.
Protheus REST APIs follow two main patterns:
@Get, @Post, @Put, @DeletewsmethodSee rest-api-reference.md for endpoint patterns and authentication.
When searching TDN (TOTVS Developer Network):
WebSearch with query: site:tdn.totvs.com <function_name> advplsite:tdn.totvs.com rest api <endpoint_name>site:tdn.totvs.com <feature> release noteshttps://tdn.totvs.com