Skip to content

Commit 0bb71f7

Browse files
committed
Add api blcok as tool
1 parent 8d15219 commit 0bb71f7

File tree

1 file changed

+2
-0
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input

1 file changed

+2
-0
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,7 @@ function CodeEditorSyncWrapper({
760760
* in the tool selection dropdown.
761761
*/
762762
const BUILT_IN_TOOL_TYPES = new Set([
763+
'api',
763764
'file',
764765
'function',
765766
'knowledge',
@@ -926,6 +927,7 @@ export function ToolInput({
926927
const toolBlocks = getAllBlocks().filter(
927928
(block) =>
928929
(block.category === 'tools' ||
930+
block.type === 'api' ||
929931
block.type === 'workflow' ||
930932
block.type === 'knowledge' ||
931933
block.type === 'function') &&

0 commit comments

Comments
 (0)