feat: tool set_upload_info para editar info1-info5 de uploads (registros y vars de modulo) + docs

This commit is contained in:
Jordan Diaz
2026-07-25 23:08:52 +00:00
parent 6aea6c7005
commit b9df5cbb54
5 changed files with 133 additions and 2 deletions

View File

@@ -20,8 +20,8 @@ export function registerGetModuleConfigVarsTool(server) {
`Get the current configuration variable values for a module instance on a page record. Returns:
- vars: resolved values (text, HTML, etc.) for simple vars and arrays for multi/repeater vars
- varsMeta: per-var physical location { tableName: 'builder_custom', recordNum, fieldName, type }. USE THIS to know exactly which row + column to update with create_or_update_record. The variable's display name (e.g. 'titulo') is NOT the same as the physical column name (e.g. 'title2').
- uploadFields: per-var upload location for upload_record_image / replace_record_image
- varsMeta: per-var physical location { tableName: 'builder_custom', recordNum, fieldName, type }. USE THIS to know exactly which row + column to update with create_or_update_record. The variable's display name (e.g. 'titulo') is NOT the same as the physical column name (e.g. 'title2'). Uploads inside a 'multi' var carry their labels in subFields.<subVar>.infoLabels.
- uploadFields: per-var upload location for upload_record_image / replace_record_image / set_upload_info. Each entry includes infoLabels when the module defines them (array; position 0 = info1).
- moduleId, sectionId
Required params: