download_app_sources
Download the complete source code of a ServiceNow application scope, including all groups and dependencies, to a local directory.
Instructions
FULL/all source of an app scope to disk (all groups+deps). scope REQUIRED — ask user. Step 1, not portal.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | REQUIRED app namespace (x_...) or app name. Ask the user if not given. | |
| resume | No | Replay finished stages from a prior timed-out call; skip re-downloading them. | |
| page_size | No | ||
| background | No | Run in background; call again (same args) to poll progress, then result. | |
| output_dir | No | Omit — default path is canonical and reused. Set only for one-off export. | |
| build_graph | No | Also run the offline audit (relationship graphs) after download. No API cost. | |
| incremental | No | Re-download only records changed since last sync (sys_updated_on). | |
| only_active | No | ||
| include_schema | No | ||
| acl_script_only | No | ||
| auto_resolve_deps | No | After download, fetch missing cross-scope SI/widget/provider/ui_macro deps. | |
| reconcile_deletions | No | Warn about local records deleted on the instance. No auto-delete. | |
| max_records_per_type | No | ||
| include_widget_sources | No |