Some toolkits are returning 0 tools #445
Answered
by
torresmateo
torresmateo
asked this question in
Q&A | Troubleshooting
-
I’ve also noticed that the Notion toolkit is returning 0 tools. This is the code being used: if (process.env.ARCADE_TOOLKITS) {
availableToolkits = process.env.ARCADE_TOOLKITS.split(',').map(toolkit => {
const [name, limit = '30'] = toolkit.split(':');
const emojiMap: Record<string, string> = {
google: '📧', slack: '💬', github: '🐙',
microsoft: '💼', notion: '📝', trello: '📋'
};
return {
name: name.trim(),
limit: parseInt(limit),
emoji: emojiMap[name.trim()] || '🔧'
};
});
}
console.log(`📦 [${requestId}] Configured toolkits:`, availableToolkits.map(t => `${t.name}(${t.limit})`).join(', '));
const allToolkits = [];
const toolkitStats = [];
// Fetch all configured toolkits
for (const toolkit of availableToolkits) {
console.log(`📞 [${requestId}] Fetching ${toolkit.name} toolkit tools...`);
const fetchStart = performance.now();
try {
const toolkitData = await arcade.tools.list({ toolkit: toolkit.name, limit: toolkit.limit });
const fetchEnd = performance.now();
console.log(`✅ [${requestId}] ${toolkit.name} tools fetch completed in ${(fetchEnd - fetchStart).toFixed(2)}ms - ${toolkitData.items.length} tools found`);
allToolkits.push({ ...toolkit, data: toolkitData });
toolkitStats.push({ name: toolkit.name, count: toolkitData.items.length, emoji: toolkit.emoji });
} catch (toolkitError) {
console.error(`❌ [${requestId}] Failed to fetch ${toolkit.name} toolkit:`, toolkitError);
}
} and this is the output:
As you can see, the other tools are fetched but noting from Notion
|
Beta Was this translation helpful? Give feedback.
Answered by
torresmateo
Jun 16, 2025
Replies: 1 comment 4 replies
-
Oh... I see, the reason for this is that the Notion Toolkit is named |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah, I see what you mean, unfortunately we don't have a docs page that consolidates that (yet!). I'm opening a ticket. For now, unfortunately the fastest way to get a list is to list ALL the tools and parse the toolkit from the list
something like that, but if you have workers with a lot of tools you'd need pagination
The output for that for my dashboard (with some custom workers) is this: