Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά παραβίασης».

Μάθετε περισσότερα

How can I pass the full url to the AI prompt?

  • 2 απαντήσεις
  • 0 έχουν αυτό το πρόβλημα
  • 48 προβολές
  • Τελευταία απάντηση από Gerenuk

more options

I've found out that you can create custom prompts for the AI sidebar with the configuration `browser.ml.chat.prompts.*`. Usually, this is done with the selection text. However, I'd like to pass the URL instead. I could use `%url%`, but that does not include parameters after `?` and hence does not work for Youtube.

Is there any variable that I can use to pass the full URL including parameters of the URL?

I've found out that you can create custom prompts for the AI sidebar with the configuration `browser.ml.chat.prompts.*`. Usually, this is done with the selection text. However, I'd like to pass the URL instead. I could use `%url%`, but that does not include parameters after `?` and hence does not work for Youtube. Is there any variable that I can use to pass the full URL including parameters of the URL?

Επιλεγμένη λύση

Hi Gerenuk,

You're right — the %url% variable currently passes only the base URL without the full query string, which limits use cases like YouTube links.

At the moment, there isn't an officially documented variable that includes the full URL with parameters in browser.ml.chat.prompts.*. However, this is great feedback and a very valid use case.

A few suggestions:

  • You could try using browser extensions or a bookmarklet as a workaround to grab the full URL and pass it to the AI manually.
  • I’d also recommend filing a feature request on Bugzilla under the Firefox > Messaging System component — the dev team may be open to supporting a new variable like %full_url% or extending %url% to include query parameters.

Let me know if you'd like help drafting the request — and thanks for exploring advanced config options like this!

— Nathan

Προβολή απάντησης εντός συζήτησης 👍 0

Όλες οι απαντήσεις (2)

more options

Επιλεγμένη λύση

Hi Gerenuk,

You're right — the %url% variable currently passes only the base URL without the full query string, which limits use cases like YouTube links.

At the moment, there isn't an officially documented variable that includes the full URL with parameters in browser.ml.chat.prompts.*. However, this is great feedback and a very valid use case.

A few suggestions:

  • You could try using browser extensions or a bookmarklet as a workaround to grab the full URL and pass it to the AI manually.
  • I’d also recommend filing a feature request on Bugzilla under the Firefox > Messaging System component — the dev team may be open to supporting a new variable like %full_url% or extending %url% to include query parameters.

Let me know if you'd like help drafting the request — and thanks for exploring advanced config options like this!

— Nathan

more options

Thanks for the information!

Bookmarklet works, but it's less convenient than the built-in AI sidebar.

For filing a feature request, I'm not sure where to go. There is general bugs in Bugzilla and there is Mozilla Connect for feature requests. Where do I suggest it and how do I choose "Messaging System component"?

Υποβολή ερώτησης

Πρέπει να συνδεθείτε στον λογαριασμό σας για να απαντήσετε σε δημοσιεύσεις. Ξεκινήστε μια νέα ερώτηση εάν δεν διαθέτετε ακόμα λογαριασμό.