// Send an emailawait rt.tools.execute('gmail', { action: 'send_email', to: '[email protected]', subject: 'Hello from RunTools', body: 'This email was sent via the Tools API!',});// Post to Slackawait rt.tools.execute('slack', { action: 'post_message', channel: '#general', text: 'Hello from RunTools!',});// Query databaseconst result = await rt.tools.execute('postgres', { action: 'query', sql: 'SELECT * FROM users LIMIT 10',});
// Mark a tool as searchableawait rt.tools.configure('gmail', { searchable: true, // Include in tool_search});// Or exclude sensitive toolsawait rt.tools.configure('stripe', { searchable: false, // Hide from tool_search});
Each installed tool is available to all agents in your organization. Be intentional.
Use tool_search for many tools
If you have many tools installed, use tool_search instead of listing them all. Fewer tools in context means faster responses and better agent performance.
Test tools before production
Use test mode to verify tool configuration before using in production.
Rotate credentials regularly
Update OAuth tokens and API keys periodically for security.