Append the .md suffix to the end of the Caoliao QR code short link to get the Markdown-formatted content of the page.
URL Format
Matching rules:https://{domain}/{segment1}/{segment2}[?query]
- Supported domains:
qr61.cn、qr71.cn、qr69.cn、h.qr61.cn - Path: exactly two segments (e.g.,
oZwrwZ/q2wR1WE), each segment consisting of alphanumeric characters - The URL may have query parameters at the end, which do not affect validation
Examples:
https://qr61.cn/oZwrwZ/q2wR1WEhttps://qr71.cn/oZwrwZ/q2wR1WEhttps://h.qr61.cn/oZwrwZ/q2wR1WE?a=1
Workflow
-
Validate URL — confirm the domain is one of
qr61.cn/qr71.cn/qr69.cn/h.qr61.cn, and the path is exactly two non-empty segments. -
Construct request URL — append
.mdto the end of the path (query parameters are kept after.md):https://qr61.cn/oZwrwZ/q2wR1WE → https://qr61.cn/oZwrwZ/q2wR1WE.md https://h.qr61.cn/oZwrwZ/q2wR1WE?a=1 → https://h.qr61.cn/oZwrwZ/q2wR1WE.md?a=1 -
Use the Shell tool with
curlto fetch the content, choosing the corresponding command based on the operating system:Windows (PowerShell):
curl.exe -L -s "https://qr61.cn/oZwrwZ/q2wR1WE.md"macOS / Linux:
curl -L -s "https://qr61.cn/oZwrwZ/q2wR1WE.md"On Windows, you must use
curl.exeinstead ofcurl, to avoid PowerShell parsing it asInvoke-WebRequest。 -
Return the fetched Markdown content to the user. If the request fails or returns an error, inform the user of the specific problem.
Notes
-LThe parameter is used to follow redirects.-sThe parameter is used for silent output, not showing progress information.- If there is a trailing slash
/at the end of the path, remove it first before appending.md。 - If the URL has query parameters (
?key=value),.mdshould be inserted between the path and?.