Skip to content

Commit 60e7ddb

Browse files
committed
feat(table): expose position parameter for row insertion via copilot
1 parent 18a559b commit 60e7ddb

3 files changed

Lines changed: 127 additions & 91 deletions

File tree

apps/sim/lib/copilot/generated/tool-catalog-v1.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ export const EditWorkflow: ToolCatalogEntry = {
957957
params: {
958958
type: 'object',
959959
description:
960-
'Parameters for the operation. \nFor edit: {"inputs": {"temperature": 0.5}} NOT {"subBlocks": {"temperature": {"value": 0.5}}}\nFor add: {"type": "agent", "name": "My Agent", "inputs": {"model": "gpt-4o"}}\nFor delete: {} (empty object)',
960+
'Parameters for the operation. \nFor edit: {"inputs": {"temperature": 0.5}} NOT {"subBlocks": {"temperature": {"value": 0.5}}}\nFor add: {"type": "agent", "name": "My Agent", "inputs": {"model": "claude-sonnet-4-6"}}\nFor delete: {} (empty object)',
961961
},
962962
},
963963
required: ['operation_type', 'block_id', 'params'],
@@ -2868,6 +2868,17 @@ export const UserTable: ToolCatalogEntry = {
28682868
description:
28692869
'Pipe query_rows results directly to a NEW workspace file. The format is auto-inferred from the file extension: .csv → CSV, .json → JSON, .md → Markdown, etc. Use .csv for tabular exports. Use a flat path like "files/export.csv" — nested paths are not supported.',
28702870
},
2871+
position: {
2872+
type: 'number',
2873+
description:
2874+
'Zero-based position at which to insert the row (optional for insert_row). Existing rows at that position and below are shifted down. Omit to append at the end.',
2875+
},
2876+
positions: {
2877+
type: 'array',
2878+
description:
2879+
'Zero-based positions for each row in batch_insert_rows (optional). Must have the same length as rows and contain no duplicates. Existing rows are shifted down as needed. Omit to append all rows at the end.',
2880+
items: { type: 'number' },
2881+
},
28712882
rowId: {
28722883
type: 'string',
28732884
description: 'Row ID (required for get_row, update_row, delete_row)',

0 commit comments

Comments
 (0)