api-assets
Call nodetool.assets or nodetool.documents from a code action: find, read and save files in the user's asset library, keep a file another tool downloaded, and convert documents or extract text and tables from a PDF. Load before the first call into these namespaces.
- License 许可
- AGPL-3.0
- 最近更新
- 2026-11-15
- Stars
- ★ 635
- Forks
- 91
01 前言 Front Matter
- name
- api-assets
- description
- Call nodetool.assets or nodetool.documents from a code action: find, read and save files in the user's asset library, keep a file another tool downloaded, and convert documents or extract text and tables from a PDF. Load before the first call into these namespaces.
03 SKILL.md 正文
nodetool.assets and nodetool.documents
An asset is a stored file in the user's library: an image, a video, audio, a
document, JSON. Its locator is asset://<id> (an extension is allowed:
asset://<id>.png). Reuse an asset id instead of making the same file again.
The workspace is a different store: it holds the files of this run, by
workspace-relative path.
nodetool.assets
| Call | Does | Answers |
|---|---|---|
list({source, query, content_type, limit}) |
Lists assets. source is "user" (default) or "package". content_type is image, video, audio, text or folder. |
Asset rows |
search(query, {content_type, limit}) |
Finds assets by a name substring across every media type. content_type is a MIME prefix ("image/"). An empty query lists the newest. limit defaults to 25. |
Handles with asset:// uris |
images({query, limit}) |
Lists image assets as handles: id, name, size, dimensions. No pixels are loaded. | Handles. Pass an id to view_image to see one. |
get(assetId) |
Reads one asset row. No bytes. | The row |
read(nameOrUri) |
Reads the content. Takes an asset:// URI, an id, a /api/storage/ key or a stored file name. |
{content} for text, {content_base64} for binary |
save(name, {content | content_base64 | source, content_type}) |
Saves a file to the library. | {asset_id, asset_uri, url} |
save
Pass exactly one of these:
content— text, markdown or JSON.content_base64— binary bytes you made yourself.source— bytes that already exist: theasset_urlor/api/storage/key that another tool returned (nodetool.web.download,run_apify_actor, a generation), anasset://URI to copy, or an http(s) URL. The host copies them, so the bytes never pass through the guest.
Never read() a stored file to base64 to save it again. Pass it as source.
Without content_type, the extension of name decides it: name an SVG
logo.svg and it is stored as image/svg+xml. Show a saved image, video or
audio file in the reply as .
Editing a stored image
Pass the asset to image.* (a guest global), then save the handle:
const handle = await image.resize("asset://<id>.png", { width: 1024 });
const saved = await nodetool.media.toImage(handle);
return saved.asset_uri;
nodetool.documents
File-to-file conversion and PDF tools. Every path is
workspace-relative. Stage an asset into the workspace first with
nodetool.web.download("asset://<id>", "in.pdf").
| Call | Does |
|---|---|
convert(inputFile, outputFile, {from_format, to_format}) |
Converts markdown → html, docx, pdf or text; html → markdown, docx or pdf; docx → markdown, html or text; text → markdown or text. from_format defaults to markdown, to_format to pdf. Any other pair returns an error that lists these. |
extractText(pdfPath, {start_page, end_page}) |
Plain text from a PDF, as {text}. Pages are 0-based, and end_page: -1 is the last page. |
extractTables(pdfPath, outputJsonFile, {start_page, end_page}) |
Tables from a PDF into a JSON file |
markdownToPdf(inputFile, outputFile) |
Markdown to PDF |
pdfToMarkdown(inputFile, outputFile, {start_page, end_page}) |
PDF to Markdown |
The output of a conversion is a workspace file. Save it to the library with
nodetool.assets.save(name, {source: …}) when the user should keep it.
04 同仓库更多 Skills
humanizer
Rewrite AI-sounding text so it reads like the writer without changing what it says. Use when editing or reviewing prose for AI tells: not-X-but-Y contrasts, one-line closers, staged openers, forced triads, dashes everywhere, inflated claims, sales language, stock AI words, bold labels, or filler.
nodetool
Use the NodeTool MCP server to build, validate, run, and debug visual AI workflows, and to work with assets, collections, and jobs. Use when the user mentions NodeTool or asks for a workflow graph, a node, or a media generation run on their NodeTool server.
wan-2-6-prompting
Prompt Alibaba's Wan 2.6 video — text-to-video with a global style line plus timing-bracketed shots, and image-to-video that describes only what changes over time. Covers the shot-mode switch per provider, the prompt budget, negative prompts, motion intensity wording, audio input and prompt expansion. Use whenever the model id names a Wan 2.6 video route (alibaba/wan-2.6/text-to-video, alibaba/wan-2.6/image-to-video, wan-video/wan-2.6-t2v, wan-video/wan-2.6-i2v, wan-video/wan2.6-i2v-flash) on generate_video, animate_image or a TextToVideo node. Not for Wan 2.5 or 2.7, or the Wan 2.6 image routes.
video-workflow
Build a reusable NodeTool video workflow for batches or repeated inputs. For a single finished piece, use a storyboard skill.
video-clone
Analyze a reference video and recreate its shot structure with a new product or cast in NodeTool.
video-audio-continuity
Keep sound continuous across a multi-scene piece cut from generated video — why one clip per scene hard-cuts the audio at every boundary, when to write all the scenes into a single generation instead, the sound-design vocabulary that survives a provider's copyright filter, and how to check the length, the aspect ratio and the mix of what came back. Use when a piece has more than one scene and the video model writes its own audio (Seedance 2, Veo 3, MiniMax H3, Kling 2.6 and later), or when a cut's sound drops out at the shot changes.