// Get all HRIS toolsconst hrisTools = toolset.getStackOneTools('hris_*', accountId);// Get all ATS toolsconst atsTools = toolset.getStackOneTools('ats_*', accountId);// Get specific list operationsconst listTools = toolset.getStackOneTools('hris_list_*', accountId);
// Get a specific toolconst employeeTool = tools.getTool('hris_list_employees');// Execute with parametersconst employees = await employeeTool.execute({ limit: 10, include_details: true});console.log(employees);
// Get all available toolsconst tools = toolset.getStackOneTools('*', accountId);// List tool namesconst toolNames = tools.listTools();console.log('Available tools:', toolNames);// Get specific tool informationconst toolInfo = tools.getToolInfo('hris_list_employees');console.log('Tool info:', toolInfo);
// Set in your .env file// STACKONE_API_KEY=your_api_key// STACKONE_ACCOUNT_ID=your_account_idconst toolset = new StackOneToolSet({ apiKey: process.env.STACKONE_API_KEY, // accountId can still be passed per operation});// Use environment account ID as defaultconst accountId = process.env.STACKONE_ACCOUNT_ID || 'fallback-account-id';