packages/@n8n/eslint-plugin-community-nodes/docs/rules/node-usable-as-tool.md
@n8n/community-nodes/node-usable-as-tool)š¼ This rule is enabled in the following configs: ā
recommended, āļø recommendedWithoutN8nCloudSupport.
š§ This rule is automatically fixable by the --fix CLI option.
Ensures your nodes declare whether they can be used as tools in AI workflows. This property helps n8n determine if your node is suitable for AI-assisted automation.
export class MyNode implements INodeType {
description: INodeTypeDescription = {
displayName: 'My Node',
name: 'myNode',
group: ['input'],
version: 1,
// Missing usableAsTool property
properties: [],
};
}
export class MyNode implements INodeType {
description: INodeTypeDescription = {
displayName: 'My Node',
name: 'myNode',
group: ['input'],
version: 1,
usableAsTool: true,
properties: [],
};
}