Jacqueline Woods, 47, sparked the incident at The Old Bakehouse in West Linton, on 10 January last year.
At Selkirk Sheriff Court, she admitted possessing an air weapon and throwing a rock through a window.
She pleaded guilty to slashing a vehicle's tyres and behaving in a threatening or abusive manner.
Sentence on Woods, of Tweed Drive, Livingston, was deferred until February.
Armed police were called to a Peeblesshire village after a woman caused a disturbance in a local restaurant.