MCPVault

export_png

MCP tool from WzImg MCP Server by lastbattle

Export canvas to PNG. Params: path, outputPath

How to use it

export_png is exposed by the WzImg MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the export_png tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

Install WzImg MCP Server

$npx @modelcontextprotocol/inspector dotnet run --project WzImgMCP
FULL WZIMG MCP SERVER LISTING

Other tools in WzImg MCP Server (39)

clear_cache

Clear loaded image cache

export_mp3

Export sound to MP3. Params: path, outputPath

export_to_md

Export property tree to Markdown and writes .md files. Params: path, maxDepth=5 (max 10), outputPath?. Error if >100KB without outputPath

get_animation_frames

Get frames. Params: path, metadataOnly=true, offset=0, limit=5 (max 50). Returns frameCount, totalDuration, hasMore

get_cache_stats

Get cache hit ratio and memory usage

get_canvas_bitmap

Get image as base64 PNG

get_canvas_bounds

Get lt/rb bounds

get_canvas_delay

Get frame delay in milliseconds

get_canvas_head

Get head position for character rendering

get_canvas_info

Get metadata (dimensions, format, origin, delay) without image data

get_canvas_origin

Get draw offset point (X, Y)

get_children

Get child properties. Params: path?, compact=true, offset=0, limit=50 (max 500)

get_data_source_info

Get current data source metadata and cache stats

get_float

Get float value. Params: path, defaultValue?

get_int

Get integer value. Params: path, defaultValue?

get_properties_batch

Batch get. Params: requests[] with {category, image, path}

get_property

Get property with full metadata

get_property_count

Count child properties

get_property_path

Get full path of a property

get_property_value

Get just the value

get_sound_data

Get audio as base64

get_sound_info

Get metadata (duration, format, frequency)

get_string

Get string value. Params: path, defaultValue?

get_subdirectories

List subdirectories in a category

get_tree_structure

Get property tree. Params: path?, depth=2 (max 5), maxChildrenPerNode=50 (max 200). Hard limit: 1000 nodes

get_vector

Get vector (X, Y)

init_data_source

Initialize data source from directory containing manifest.json. Params: basePath

iterate_properties

Iterate with full metadata. Params: path?, offset=0, limit=50

list_canvas_in_image

List all canvases. Params: maxDepth=10

list_categories

List available categories (Map, Mob, Npc, etc.)

list_images_in_category

List .img files. Params: category, subdirectory?

list_properties

List child properties. Params: path?, compact=true, offset=0, limit=50 (max 500)

list_sounds_in_image

List all sounds. Params: maxDepth=10

resolve_canvas_link

Resolve inlink/outlink references

resolve_sound_link

Resolve UOL to sound

resolve_uol

Resolve UOL link to target property

scan_img_directories

Scan directory for available data sources. Params: path, recursive=true

search_by_name

Search by name pattern ( wildcards). Params: pattern, category?, image?, compact=true, maxResults=20 (max 200)

search_by_value

Search by value. Params: value, type?, category?, image?, compact=true, maxResults=20 (max 200)