Use the Roof Tool.
Being new, you'll learn that the names of the tools do not limit what you make with them. The slab tool only makes flat slabs. The roof tool makes angled slabs, with custom edge angles. So, the roof tool makes sloping floor slabs for drainage, e.g., garages, roofs that drain to central scuppers, etc.
In the example that you show, the easiest way to get the 'roof' to fit is to create it in 3D, where you'll be asked to pick 3 points to define the plane.
Cheers,
Karl
AC 28 USA and earlier • macOS Sequoia 15.2, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
One of the forum moderators