Import a Setup Scan
import_setup_scanImports a machine-generated setup scan (scan.atoms) as setup snapshot items. Creates a new snapshot with source "cli_scan", or with snapshotId updates a snapshot the user owns in place (same id, next revision); an unknown or not-owned snapshotId is refused and never creates one. Every atom needs stateClassification. Local absolute paths and secret-shaped values are refused before scanning; returns privacyWarnings, acknowledgeable terms and coverage (compacted under 50,000 chars when large). dryRun: true checks without importing. get_reference topic "snapshot_guide" documents the item types for every platform. [Bearer scope: setup_snapshot:publish]
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"scan": "<scan>"
},
"name": "import_setup_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scan | Yes | ||
| title | No | Optional snapshot title; defaults to a generated one (create) or keeps the existing title (update). | |
| dryRun | No | When true, runs the boundary checks, full content scan and coverage report and returns privacyWarnings and acknowledgeable without importing (no snapshot, revision or audit entry). | |
| summary | No | Optional snapshot summary; defaults like title. | |
| snapshotId | No | Optional: update this owned snapshot in place instead of creating. Foreign/unknown ids refuse — never a silent create. |