extract_assets
Extract images, sounds, fonts, and other non-code assets from SWF files. Specify asset types to extract, with output saved to a chosen directory.
Instructions
Extract images, sounds, fonts, and other assets from a SWF file.
This tool extracts non-code assets from a SWF file, including images, sounds, fonts, shapes, movie clips, and binary data.
Args: swf_path: Absolute path to the SWF file output_dir: Directory where extracted assets will be saved asset_types: Optional list of asset types to extract. Valid types: 'image', 'sound', 'font', 'shape', 'movie', 'binaryData', 'all' (default: ['all']) timeout: Optional timeout in seconds (default: 60)
Returns: Dictionary with: - success: Whether extraction succeeded - swf_path: Input SWF file path - output_dir: Output directory path - asset_types: List of asset types extracted - extracted_count: Number of assets extracted - message: Success message
Example: >>> extract_assets("/path/to/game.swf", "/path/to/output", asset_types=["image", "sound"]) { "success": true, "swf_path": "/path/to/game.swf", "output_dir": "/path/to/output", "asset_types": ["image", "sound"], "extracted_count": 127, "message": "Successfully extracted 127 assets" }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| swf_path | Yes | ||
| output_dir | Yes | ||
| asset_types | No | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||