remove_visible_column
Remove a column from a table's visible-columns list for a specified context. Staged changes are applied later via apply_annotations, avoiding full annotation replacement.
Instructions
Remove a column from the visible-columns list for a specific context.
This is a convenience tool for removing columns without replacing the entire visible-columns annotation. Changes are staged until apply_annotations() is called.
Args: table_name: Name of the table. context: The context to modify (e.g., "compact", "detailed"). column: Column to remove. Can be: - String: column name to find and remove - List: foreign key reference [schema, constraint] to find and remove - Integer: index position to remove (0-indexed)
Returns: JSON with the updated column list for the context.
Examples: # Remove by column name remove_visible_column("Image", "compact", "Description")
# Remove by foreign key reference
remove_visible_column("Image", "detailed", ["domain", "Image_Subject_fkey"])
# Remove by position (first column)
remove_visible_column("Image", "compact", 0)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| column | Yes | ||
| context | Yes | ||
| table_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |