Skip to content

Commit c2764f4

Browse files
committed
Add api blcok as tool
1 parent 400178a commit c2764f4

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
@@ -775,6 +775,7 @@ function CodeEditorSyncWrapper({
775775
* in the tool selection dropdown.
776776
*/
777777
const BUILT_IN_TOOL_TYPES = new Set([
778+
'api',
778779
'file',
779780
'function',
780781
'knowledge',
@@ -914,6 +915,7 @@ export function ToolInput({
914915
const toolBlocks = getAllBlocks().filter(
915916
(block) =>
916917
(block.category === 'tools' ||
918+
block.type === 'api' ||
917919
block.type === 'workflow' ||
918920
block.type === 'knowledge' ||
919921
block.type === 'function') &&

0 commit comments

Comments
 (0)