Choose one San Francisco cable car ride, then spend time near the Ferry Building as a separate part of the waterfront outing.
Pick a cable car line before heading out. Look at where it begins and ends and decide whether you want to ride the whole line or use it to reach another neighborhood. Leave room for a wait, particularly if you are starting at a popular turnaround.
Give the Ferry Building its own stop by the bay. Spend time with the market or walk along the waterfront after getting there. Check the connection between the two parts of the outing on a city map and keep another transit option in mind if the cable car line is busy.