13 lines
393 B
JavaScript
13 lines
393 B
JavaScript
import 'dotenv/config';
|
|
import { handleToolCall } from './dist/tools.js';
|
|
|
|
async function main() {
|
|
// Test via the same path the server uses
|
|
const result = await handleToolCall('search_messages', { q: 'test', account: 'gmail', maxResults: 3 });
|
|
console.log(JSON.stringify(result, null, 2));
|
|
}
|
|
main().catch(err => {
|
|
console.error('ERROR:', err.message);
|
|
console.error(err.stack);
|
|
});
|