Submit a flag
htb_submit_flagSubmits a machine or challenge flag to Hack The Box and returns the acceptance message, awarded points, and ownership state, defaulting to the active machine for machine flags.
Instructions
Submit a machine or challenge flag. For machines, target defaults to the active machine. Returns HTB's acceptance message, points, and ownership state.
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": {
"kind": "<kind>",
"flag": "<flag>"
},
"name": "htb_submit_flag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flag | Yes | The flag value. | |
| kind | Yes | Which flag type to submit. | |
| target | No | Machine name/ID or challenge name/ID. Required for challenges; defaults to the active machine. |