1. Sitecore XM Cloud Documentation, "The Layout service and GraphQL": This document states, "The Layout service is a GraphQL endpoint that enables you to request data for a specific route... The service uses the layout query and requires the site, routePath, and language arguments." This directly confirms that the layout query's purpose is to get data for a URL (route).
2. Sitecore XM Cloud Documentation, "The GraphQL schema for the Experience Edge for XM": In the schema definition for the root Query type, the layout field is defined as layout(site: String!, routePath: String!, language: String!, ...): LayoutData. The description for the routePath argument is "The path of the route to retrieve layout data for." This explicitly links the routePath to retrieving layout data.
3. Sitecore XM Cloud Documentation, "Walkthrough: Using the Pages GraphQL API": This walkthrough demonstrates building a page component by first using the layout query to fetch page-level data. The first step shown is "To fetch page-level data, you can send a layout query to the Pages GraphQL endpoint," using routePath to specify the page.