ctf_submit_flag
Submit a flag for a CTF challenge by providing its challenge ID and flag string. Get immediate feedback indicating whether the flag is correct, already solved, or incorrect.
Instructions
Submit a flag for a CTF challenge.
Returns whether the flag was correct, already solved, or incorrect.
Args: challenge_id: The challenge ID to submit for flag: The flag string (e.g. 'flag{example_flag_here}')
Example: ctf_submit_flag(challenge_id=42, flag='flag{s0m3_fl4g}')
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>",
"flag": "<flag>"
},
"name": "ctf_submit_flag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flag | Yes | ||
| challenge_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |