If you can go up on spare halyards, that is one way. If you don't have 2 spare halyards (one for you and one for safety), then you might need the yard to crane you up. Hopefully the marina you are at has a crane truck that can take you up.
If you have only one spare halyard, you could risk going up without a safety line or perhaps try to use the spare halyard to hook onto the lost halyard. Rig a line on the spare halyard to be able to pull it back down, send the spare up with a hook of some sort and try to snag the lost halyard. It might work and it might not. Worth a try.
If you have only one spare halyard, you could risk going up without a safety line or perhaps try to use the spare halyard to hook onto the lost halyard. Rig a line on the spare halyard to be able to pull it back down, send the spare up with a hook of some sort and try to snag the lost halyard. It might work and it might not. Worth a try.