SuiteScript 2.1 Custom Tool Scripts for AI Integration
Updated for NetSuite 2026.1, addressing AI integration and custom tool script capabilities. TL;DR Opening Custom tool scripts in SuiteScript 2.1 enable
TL;DR Opening
Custom tool scripts in SuiteScript 2.1 enable developers to integrate external AI clients with NetSuite through the NetSuite AI Connector Service. Starting in NetSuite 2026.1, these scripts now allow AI systems to retrieve data, trigger actions, and execute various SuiteScript-supported operations based on natural language prompts. By using custom tools, your AI client can provide more accurate responses to prompts and perform specific actions for you in NetSuite. You deploy custom tools to your NetSuite account through the SuiteCloud Development Framework (SDF), either as a SuiteApp project or an account customization project (ACP).
What Are Custom Tool Scripts?
Custom tool scripts serve as a bridge for AI applications to interact with NetSuite's backend. By deploying these scripts, users can enhance how AI clients process requests and retrieve information, leading to more relevant and accurate responses. These scripts can retrieve data, trigger actions, or perform most SuiteScript-supported operations, all from natural language prompts in your AI client. They are implemented through the SuiteCloud Development Framework (SDF), providing flexibility in tool deployment as either SuiteApp projects or Account Customization Projects (ACPs).
How to Define Custom Tools
Each custom tool is defined using a structured JSON format that includes:
- Name: The unique identifier for the tool.
- Description: A brief overview of what the tool does.
- Input Parameters: Specifications on what data the tool requires for operation.
With this information, AI clients can determine when to engage the tool and what parameters to supply.
Toolset SDF Object
Within SDF, tools are defined and grouped using a toolset SDF object that configures the visibility and access permissions for each tool within the AI client. If a user has all required permissions, the tool is visible in the AI client; however, what the tool can access and do in NetSuite is still limited by the user's NetSuite role and permissions.
Limitations
It's important to note that certain SuiteScript modules are not supported in custom tool scripts. These exclusions include:
N/httpN/httpsN/llmN/sftp
These limitations can impact the functionalities you may want to implement, so they should be considered during development.
Getting Started
To assist users in developing their custom tools, NetSuite offers sample implementations within the SuiteCloud Project Repository. This can serve as a foundation for building personalized tools tailored to specific AI integration needs. You can find sample tool implementations in the MCP-Sample-Tools directory of the SuiteCloud Project Repository on Oracle Samples GitHub.
Related Topics
Developers may explore the following resources for additional guidance:
- Custom Tool Script Requirements: Understand the foundational requirements for creating your own scripts.
- Custom Tool JSON Schema: Detailed structure and examples of the JSON schema used for tools.
- Best Practices for Custom Tool Scripts: Strategies for optimizing your tools and ensuring they operate effectively.
- Managing Custom Tools in NetSuite: Tips on overseeing and adjusting custom tools within the platform.
Who This Affects
- Developers: Building custom tools for AI integration.
- Administrators: Managing tool permissions and deployment.
- AI Engineers: Designing AI systems that leverage custom tools.
Key Takeaways
- Custom tool scripts enable AI integrations with NetSuite through natural language prompts.
- Tools are defined using a JSON schema and require clear parameters for operation.
- Access and visibility are controlled by user permissions within NetSuite.
- Certain SuiteScript modules are not supported in custom tools, which confines their functionality.
- Sample implementations are available to aid developers in creating their own custom tools.
Frequently Asked Questions (4)
How can I deploy custom tool scripts in NetSuite?
Which SuiteScript modules cannot be used in custom tool scripts?
What permissions are required for users to interact with custom tools?
Where can developers find sample implementations for custom tool scripts?
Weekly Update History (2)
In SuiteScript 2.1 Custom Tool Script Type, added a new help topic for Building MCP Apps (Interactive UI) with Custom Tools.
View Oracle DocsUpdated SuiteScript 2.1 Custom Tool Script Type and SuiteScript 2.1 Custom Tool Script Type Reference to remove N/search from unsupported modules.
View Oracle DocsWas this article helpful?
More in AI
- Natural Language Queries in NetSuite AI
Updated for NetSuite 2026.1, featuring enhancements in natural language queries. The MCP Standard Tools SuiteApp offers enhanced AI-driven interaction with
- Support for Consolidated Reports and SuiteQL Tool
Updated to reflect the latest features added in NetSuite 2026.1. Starting with the latest updates in NetSuite 2026.1, NetSuite enhances reporting capabilities
- Intelligent Close Manager Portlet in NetSuite
The Intelligent Close Manager portlet offers a centralized view for managing tasks and exceptions in NetSuite, enhancing close processes.
- New SuiteCloud Agent Skills for NetSuite 2026.1
NetSuite 2026.1 introduces new SuiteCloud Agent Skills, enhancing security and development workflows.
Advertising
Reach AI Professionals
Put your product in front of NetSuite experts who work with AI every day.
Sponsor This Category