create_polyglot
Combine two file formats into a single file that is valid in both. For example, prepend a PDF to a ZIP to create a valid PDF and ZIP simultaneously.
Instructions
Create polyglot files by prepending one file format before another. The resulting file is valid when interpreted as either format. For example, prepend a PDF before a ZIP to create a file that is both a valid PDF and a valid ZIP.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file1_path": "<file1_path>",
"file2_path": "<file2_path>",
"output_path": "<output_path>"
},
"name": "create_polyglot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file1_path | Yes | Path to the first file (will be at the start of the output) | |
| file2_path | Yes | Path to the second file (will be appended after the first) | |
| output_path | Yes | Path for the output polyglot file |