Context is the object that is the target of a menu command.
// Add context menu named "Do Something" to context menu
@MenuItem ("CONTEXTRigidbody
Do Something")
static function DoSomething (command : MenuCommand) {
var body : Rigidbody = command.context;
body.mass = 5;
}