用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/nodetool-ai/nodetool --skill sandbox-xml命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | sandbox-xml |
| description | Parse XML feeds and sitemaps in a Code node or CodeAct action, with fast-xml-parser running on the host |
Specifier: @nodetool-ai/sandbox-xml. Import it at the top of the body.
fast-xml-parser reads a bare window, which the guest does not have, so it
cannot be compiled in. This pack is a host module: the import resolves to a
generated facade over NodeTool's own implementation.
import { parse } from "@nodetool-ai/sandbox-xml";
const feed = await parse(inputs.xml);
const items = feed?.rss?.channel?.item ?? [];
return { titles: items.map((i) => i.title) };
Attributes ride along prefixed @_ so they never collide with child-element
keys; pass { attributes: false } to drop them. Text values stay text — a
numeric-looking id must not change shape between runs.
Invalid XML throws with the parser's own reason rather than returning a partial tree.
parse is async.channel.item is one object when the feed
has one item; normalize with [].concat(x ?? []).