get-gcores-new
Extract and analyze gaming-related content from Gcores, including game reviews, player culture, development insights, and gaming peripherals, integrated with Trends Hub's Chinese trend aggregation.
Instructions
获取机核网游戏相关资讯,包含电子游戏评测、玩家文化、游戏开发和游戏周边产品的深度内容
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/gcores.ts:3-7 (registration)Registration of the 'get-gcores-new' tool using defineToolConfig. Specifies the tool name, description, and a function that fetches RSS items from Gcores RSS feed.export default defineToolConfig({ name: 'get-gcores-new', description: '获取机核网游戏相关资讯,包含电子游戏评测、玩家文化、游戏开发和游戏周边产品的深度内容', func: () => getRssItems('https://www.gcores.com/rss'), });
- src/utils/rss.ts:10-32 (handler)The core handler function getRssItems that parses an RSS feed from the given URL and extracts relevant item details like title, description, category, author, publish time, and link. This is invoked by the tool's func.export const getRssItems = async (url: string) => { const data = await getRss(url); if (!Array.isArray(data.rss?.channel?.item)) { return []; } return (data.rss.channel.item as any[]).map((item) => { let category = ''; if (typeof item.category === 'string') { category = item.category; } if (Array.isArray(item.category)) { category = item.category.join(', '); } return { title: item.title, description: item.description, category, author: item.author || item['dc:creator'], publish_time: item.pubDate, link: item.link, }; }); };