upload_artifact
Upload screenshots, pcaps, or notes to a CTF challenge as artifacts and get an ID to embed them in markdown writeups.
Instructions
Upload a file (screenshot, pcap, note) to a challenge as an artifact.
Provide either a local file path (read from disk) or raw content bytes
with a filename. Returns the artifact record — use its id to embed images
in writeups:
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": {
"challenge_id": "<challenge_id>"
},
"name": "upload_artifact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | ||
| file_path | No | ||
| mime_type | No | ||
| challenge_id | Yes | ||
| content_base64 | No |