add_data_source
Creates a data-source block (kind='data-source') with its metadata (sourceType, refreshCadence, descriptive connectionInfo, no credentials). If connectionInfo contains a key that looks like a credential (password/token/secret/api_key/…), even nested at any depth, the WHOLE call is refused with an explicit error naming the offending key — nothing is written. Fits when the user mentions an external source (Salesforce, internal database, file, event stream…).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X position in pixels. x/y omitted (recommended): automatic placement (column dedicated to sources, same slot as `auto_layout_mcd`), then `auto_layout_mcd` for the final tidy-up. | |
| y | No | Y position in pixels. See x — absent = automatic placement. | |
| id | Yes | Unique kebab-case ID (e.g. 'salesforce-prod') | |
| desc | No | ||
| name | Yes | Display name | |
| width | No | ||
| height | No | ||
| colorKey | No | ||
| sourceType | No | ||
| connectionInfo | No | ||
| refreshCadence | No | ||
| extractionLogic | No | ||
| expectedProjectId | No | UUID of the project targeted by THIS call. ACTUALLY targets this project instead of the session project. Refused without changing anything if access is not granted. |