Man brought tool kit to break into ex-partner’s home, court hears