Class RenderWidgetTool

java.lang.Object
com.kingsrook.qqq.backend.core.actions.ai.tools.AbstractAiTool
com.kingsrook.qqq.backend.core.actions.ai.tools.RenderWidgetTool

public class RenderWidgetTool extends AbstractAiTool
render_widget: render a dashboard widget the current user may see, with the widget permission check the widget endpoint makes. Widgets are default-DENY: a widget renderer may read data without the user's table permissions (e.g., as a system user), so only widgets listed in the settings' allowedWidgetNames (and not in hiddenWidgetNames) are rendered. Any other widget gets the same DENIED answer as a missing or unpermitted one. The widget data is redacted and truncated (strings to maxCellChars, lists to maxRowsToModel, the whole tree to MAX_TREE_NODES values) for both the model and the UI.