Besides using the tokens %FrontBrowserTitle% and %FrontBrowserURL%, which @Nige_S mentioned, you can also use Applescript with Brave.
Example 1: get the title of the active tab in Brave.
tell application "Brave Browser"
set siteURL to URL of active tab of window 1
end tell
Example 2: get the URL.
tell application "Brave Browser"
set siteTitle to title of active tab of window 1
end tell
@TomJr Since the DDG browser is based on Firefox, you could probably easily adapt the macro I posted here, or perhaps one of the alternatives given in replies: URL (and Title) from Firefox (subroutine)