Custom Tool Scripts as XML Definitions

Custom tool scripts let you build NetSuite tools that external AI clients can invoke through the NetSuite AI Connector Service. With these scripts, you can retrieve data, trigger actions, or perform most SuiteScript-supported operations from natural language prompts in your AI client.

Custom tools are implemented as part of SuiteCloud projects created using the SuiteCloud Development Framework (SDF). In SDF, custom tools are defined as a tool SDF custom object.

For information about developing custom tools for the NetSuite AI Connector Service, see the following help topics:

Take note of the following guidelines when creating the XML definition file for custom tool SDF objects:

For information about the attributes and fields in a tool SDF custom object, see tool.

Example of a Custom Tool Script Object

The following sample shows a custom tool object named Report Tool that references a custom tool script file named report.js and a custom tool JSON schema file named report_schema.json.

            <tool scriptid="customtool_reports">
  <name>Report Tool</name>
  <scriptfile>[/SuiteApps/com.netsuite.tools/tools/report.js]</scriptfile>
  <rpcschema>[/SuiteApps/com.netsuite.tools/tools/report_schema.json]</rpcschema>
  <exposeto3rdpartyagents>T</exposeto3rdpartyagents>
  <permissions>
    <permission>
            <permkey>LIST_EMAILTEMPLATE</permkey>
            <permlevel>FULL</permlevel>
    </permission>
    <permission>
            <permkey>ADMI_CRMLIST</permkey>
            <permlevel>VIEW</permlevel>
    </permission>
  </permissions>
</tool> 

          

Related Topics

General Notices