List links in a message
get_email_linksExtract all http and https URLs from an email message using its key. Returns links as text without fetching or resolving them.
Instructions
The http and https URLs found in a message, as text. These links are NEVER fetched, resolved or checked — a URL in an email is attacker-controlled, and following one would let any sender make this machine issue a request on their behalf. Requires a published body index, for the same reason get_email_body does.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"key": "<key>"
},
"name": "get_email_links"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The opaque message key from a listing or a search. Stable across a Mail rebuild. Apple's internal row numbers are not accepted. |