# Get the components of a URL — URL Operations Botize method — `site_inspector.get_url_parts` (action). Breaks down a URL into its individual parts, such as the scheme, host, path, query parameters, and fragment. This is an action: it runs as a step of a task. Several can be chained. ## Fields you set The field's internal name, its type and the values it accepts. These fields accept `{{...}}` tags from earlier steps. - `mb_switch` *(boolean)* — Rules - `url` *(string)* — URL It also accepts repeatable field groups, with these prefixes: `mb_filters_*`. These are composite components (buttons, filters, keyboards); the trailing number is set by the user as they are added. ## Output variables Data this step makes available. Reference them in later steps with the double-brace tag. - `{{host}}` *(text)* — Host. Domain name of the website. Example: 'www.example.com' (from https://www.example.com:8080/offers/amazon/product.html?category=tech&id=123) - `{{port}}` *(int)* — Port. Network port used by the URL (if present). Example: '8080' (from https://www.example.com:8080/offers/amazon/product.html?category=tech&id=123) - `{{path}}` *(text)* — Path. Full path after the domain. Example: '/offers/amazon/product.html' (from https://www.example.com:8080/offers/amazon/product.html?category=tech&id=123) - `{{query}}` *(text)* — Query. Parameters after the question mark '?'. Example: 'category=tech&id=123' (from https://www.example.com:8080/offers/amazon/product.html?category=tech&id=123) - `{{dirname}}` *(text)* — Dirname. Directory that contains the file within the path. Example: '/offers/amazon' (from https://www.example.com:8080/offers/amazon/product.html?category=tech&id=123) - `{{basename}}` *(text)* — Basename. File name including its extension. Example: 'product.html' (from https://www.example.com:8080/offers/amazon/product.html?category=tech&id=123) - `{{extension}}` *(text)* — Extension. File extension (without the dot). Example: 'html' (from https://www.example.com:8080/offers/amazon/product.html?category=tech&id=123) - `{{filename}}` *(text)* — Filename. File name without the extension. Example: 'product' (from https://www.example.com:8080/offers/amazon/product.html?category=tech&id=123) ## This app Every trigger and action for URL Operations: https://botize.com/en/app/site_inspector.md ## How to build this An AI assistant (Claude, ChatGPT, Cursor…) can create and edit these tasks in the user's account through the Botize MCP connector, included in every plan: https://webhook.botize.es/mcp - Connection guide: https://botize.com/en/mcp - Agent map: https://botize.com/llms.txt - New account: https://botize.com/en/join (500 free operations, no card) --- Machine-readable summary for AI assistants. Human version: https://botize.com/en/method/site_inspector/get_url_parts