I agree with D. Winsor, the Master is always responsible if the ship is operational. If it is laid up, unmanned or with a skeleton crew, I think I would be straight down the gangway if the natives were friendly, however, in some Countries, and with some ship owners you would not want to rely on someone finding you accommodation and repatriating you.
All professional fire fighters will be better trained and equipped to fight fires than we are, but very few will have any in depth knowledge of fire fighting on board ships, or the layout and construction of ships.
Some Fire Brigades around the World do try to familiarise themselves with Merchant Ships and train for fighting fires on board ships, others do not.
The ships Senior Officers will have to forge a working relationship with the Senior Fire Brigade Officers and gain mutual understanding of their knowledge and capabilities a.s.a.p. in order to be able to effectively fight the fire.
One of the biggest dangers in fighting fires, particularly in PAX, RO Ros and Ferries is the danger of the free surface effect of the water used to fight the fire causing the ship to capsize, and that is an area that no Fire Brigade understands and the ship's Officers will have to continually monitor and discuss with the Fire Brigade. Language difficulties permitting.
Co operating with a shore side Fire Brigade is something that should be made the topic of a "Table Top" Drill on board at regular intervals and if you can contact local fire brigades they may welcome the chance to come on board and train with you. If anyone has enough spare time in Port to carry drills anymore!
The fact that you are thinking about this and talking informally about this on board is very good.
It is always better to ask a stupid question than to do a stupid thing.