
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
@loopstack/custom-tool-example-module
Advanced tools
A complete example demonstrating how to implement and use a custom tool in a workflow
A module for the Loopstack AI automation framework.
This module provides a complete example demonstrating how to implement and use custom tools in a Loopstack workflow.
Custom tools are the building blocks of Loopstack automations. This module serves as a hands-on reference for developers learning how to extend Loopstack with their own functionality.
By exploring this example, you'll understand:
This is a great starting point before building your own custom tools.
Create a new Loopstack project if you haven't already:
npx create-loopstack-app my-project
cd my-project
Start Environment
cd my-project
docker compose up -d
loopstack add @loopstack/custom-tool-example-module
This copies the source files into your src directory.
Using the
loopstack addcommand is a great way to explore the code to learn new concepts or add own customizations.
Add CustomToolModule to your default.module.ts (included in the skeleton app) or to your own module:
import { Module } from '@nestjs/common';
import { LoopCoreModule } from '@loopstack/core';
import { CustomToolModule } from './custom-tool-example-module';
import { DefaultWorkspace } from './default.workspace';
@Module({
imports: [LoopCoreModule, CustomToolModule],
providers: [DefaultWorkspace],
})
export class DefaultModule {}
Add the workflow to your default.workspace.ts or your own workspace:
import { Injectable } from '@nestjs/common';
import { BlockConfig, Workflow } from '@loopstack/common';
import { WorkspaceBase } from '@loopstack/core';
import { CustomToolExampleWorkflow } from './custom-tool-example-module/workflows';
@Injectable()
@BlockConfig({
config: {
title: 'Default Workspace',
},
})
export class DefaultWorkspace extends WorkspaceBase {
@Workflow() customToolExample: CustomToolExampleWorkflow;
}
npm run start:dev
Open localhost:3000 and execute the workflow in the Loopstack Studio.
FAQs
A complete example demonstrating how to implement and use a custom tool in a workflow
The npm package @loopstack/custom-tool-example-module receives a total of 484 weekly downloads. As such, @loopstack/custom-tool-example-module popularity was classified as not popular.
We found that @loopstack/custom-tool-example-module demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.