get_client_scripts
Retrieve client scripts (onChange, onLoad, onSubmit, onCellEdit) from a specified CMDB table. Filter by active status, optionally include redacted script bodies.
Instructions
Get client scripts configured on a CMDB table.
Returns UI-side scripts (onChange, onLoad, onSubmit, onCellEdit) for the specified table. Script bodies are redacted for credentials.
Args: table: The CMDB table to inspect (e.g. cmdb_ci_server). active_only: If True, return only active scripts. Defaults to True. include_scripts: If True, include full (redacted) script bodies. Defaults to False for token efficiency — set True when you need to review logic. limit: Maximum scripts to return (1-1000, default 25). offset: Pagination offset.
Returns: JSON object with "table", "count", "total_count", "has_more", "next_offset", and "client_scripts" list containing name, type, field_name, and optionally the redacted script body.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| active_only | No | ||
| include_scripts | No | ||
| limit | No | ||
| offset | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |