Most visits begin with clearing the line enough to run a camera from the basement cleanout outward. The plumber should locate any defect from above ground, tell you how far it sits from the foundation, and say whether the pipe ends at a town main or a septic tank.
Replacing the building sewer generally needs a plumbing permit, filed through Marshfield's online system, picked up at the Building Department, and posted where it can be seen from the street. Work on the tank or leach field goes through the Board of Health. If the house is in a mapped flood zone, ask whether a Floodplain Permit applies to the dig.
Ask whether a trenchless method, such as lining or pipe bursting, could spare a driveway, a mature tree, or a stone wall. Trenchless work isn't possible on every line, and the camera footage should show why one method was chosen over another.