Discover Table Behavior
discover_table_behaviorIdentify business rules, UI actions, client scripts, policies, workflows, and flows affecting a ServiceNow table. Returns conditions, timing, and provenance for active behavior.
Instructions
Discover configuration affecting a table: business rules, UI actions, client scripts, UI policies and field actions, server data policies, workflows, flow triggers and generic state models. Defaults to active behavior and applicable ancestors. Returns conditions, timing, provenance and completeness; configuration is not a prediction that anything will execute. Select categories and request scripts/definitions/dependencies immediately when already needed. Flow runtime triggers and design-time definitions are labeled separately. Follow per-category cursors with the same filters; use get_behavior_details for known references or a targeted batch. Empty results describe this account's visibility only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Metadata name contains this text. | |
| limit | No | Items per category; default 50. | |
| scope | No | Transaction scope for flow design-definition reads. | |
| table | Yes | Target table, e.g. incident or change_request. | |
| cursors | No | Per-category continuation tokens; retain original filters. | |
| details | No | Include requested details in this call. Default: compact configuration without script bodies or full definitions. | |
| sys_ids | No | Filter by metadata source sys_ids. For known flow IDs prefer get_behavior_details. | |
| instance | No | Instance auth alias; defaults to SN_AUTH_ALIAS. | |
| max_bytes | No | JSON response budget, default 65536 bytes. Oversized detail is omitted whole with a retrieval reference. | |
| categories | No | Categories to inspect; default all eight. | |
| dependency_depth | No | Expand one dependency level; requires details containing dependencies. Default 0. | |
| include_inactive | No | Include inactive/draft candidates where discoverable; default false. | |
| include_inherited | No | Include applicable ancestor behavior; default true. |