msf_session_destroy
Terminate a Metasploit session by its ID to stop the active payload and free resources in the container. Use this to clean up after penetration testing.
Instructions
Destroy a specific Metasploit session.
Args: session_id: The session ID to destroy
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": {
"session_id": "<session_id>"
},
"name": "msf_session_destroy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |