Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SillyTavern/Extension-WebSearch
/ functions
Functions
39 in github.com/SillyTavern/Extension-WebSearch
⨍
Functions
39
◇
Types & classes
2
↓ 5 callers
Function
performSearchRequest
* * @param {string} query Search query * @param {SearchRequestOptions} options Search request options * @typedef {{useCache?: boolean}} SearchReque
index.js:1285
↓ 4 callers
Function
ensureEndNewline
* Ensures that the provided string ends with a newline. * @param {string} text String to ensure an ending newline * @returns {string} String with an
index.js:133
↓ 4 callers
Function
isSearchAvailable
()
index.js:170
↓ 3 callers
Function
handleApiKeyManagement
* Manages API key storage and UI updates for third-party services * @param {string} keyType - The SECRET_KEYS enum value * @param {string} serviceNa
index.js:1604
↓ 3 callers
Function
registerFunctionTools
()
index.js:1505
↓ 3 callers
Function
visitLink
* Visits the provided web link and extracts the text from the resulting HTML. * @param {string} link Web link to visit * @returns {Promise<{link: st
index.js:743
↓ 2 callers
Function
isAllowedUrl
* Checks if the provided link is allowed to be visited or blacklisted. * @param {string} link Link to check * @returns {boolean} Whether the link is
index.js:465
↓ 2 callers
Function
renderRegexRules
()
index.js:144
↓ 2 callers
Function
searchImages
()
index.js:1116
↓ 2 callers
Function
searchWeb
()
index.js:1077
↓ 2 callers
Function
switchSourceSettings
()
index.js:1641
↓ 2 callers
Function
updateMessageMedia
()
index.js:546
↓ 2 callers
Function
visitImages
* Visit the provided image links and attach the resulting files to the chat. * @param {string[]} images Array of image URLs * @returns {Promise<stri
index.js:670
↓ 2 callers
Function
visitLinks
* Visits the provided web links and extracts the text from the resulting HTML. * @param {string} query Search query * @param {string[]} links Array
index.js:485
↓ 1 callers
Function
callSearchSource
* @returns {Promise<{textBits: string[], links: string[], images: string[]}>}
index.js:1306
↓ 1 callers
Function
canUseFunctionTool
* Determines whether the function tool can be used. * @returns {boolean} Whether the function tool can be used
index.js:218
↓ 1 callers
Function
doExtrasApiQuery
* Performs a search query via Extras API. * @param {string} query Search query * @returns {Promise<{textBits: string[], links: string[], images: str
index.js:932
↓ 1 callers
Function
doKoboldCppQuery
* Performs a search query via KoboldCpp. * @param {string} query Search query * @returns {Promise<{textBits: string[], links: string[], images: stri
index.js:1041
↓ 1 callers
Function
doSearxngQuery
* Performs a search query via SearXNG. * @param {string} query Search query * @returns {Promise<{textBits: string[], links: string[], images: string
index.js:1183
↓ 1 callers
Function
doSeleniumPluginQuery
* Performs a search query via the Selenium search plugin. * @param {string} query Search query * @returns {Promise<{textBits: string[], links: strin
index.js:967
↓ 1 callers
Function
doSerpApiQuery
* Performs a search query via SerpApi. * @param {string} query Search query * @returns {Promise<{textBits: string[], links: string[], images: string
index.js:822
↓ 1 callers
Function
doSerperQuery
* Performs a search query via Serper. * @param {string} query Search query * @returns {Promise<{textBits: string[], links: string[], images: string[
index.js:1072
↓ 1 callers
Function
doTavilyQuery
* Performs a search query via Tavily. * @param {string} query Search query * @returns {Promise<{textBits: string[], links: string[], images: string[
index.js:998
↓ 1 callers
Function
doZaiQuery
* Performs a search query via Z.AI. * @param {string} query Search query * @returns {Promise<{textBits: string[], links: string[], images: string[]}
index.js:1147
↓ 1 callers
Function
extractSearchQuery
* Extracts the search query from the message. * @param {string} message Message to extract the search query from * @returns {string} Search query
index.js:359
↓ 1 callers
Function
getContainer
()
index.js:1655
↓ 1 callers
Function
isBreakCondition
(message)
index.js:345
↓ 1 callers
Function
isFileExistsInDataBank
* Checks if the file for the search query already exists in the Data Bank. * @param {string} query Search query * @returns {Promise<boolean>} Whethe
index.js:704
↓ 1 callers
Function
probeSeleniumSearchPlugin
* Probes the Selenium search plugin to check if it's available. * @returns {Promise<boolean>} Whether the plugin is available
index.js:1259
↓ 1 callers
Function
processInputText
* Pre-process search query input text. * @param {string} text Input text * @returns {string} Processed text
index.js:441
↓ 1 callers
Function
uploadToDataBank
* Uploads the file to the Data Bank. * @param {string} fileName File name * @param {string} fileText File text * @returns {Promise<void>}
index.js:728
↓ 1 callers
Function
visitBlobUrl
* Visits the provided web link and extracts the data as a Blob. * @param {string} url URL to visit * @returns {Promise<Blob>} Extracted data
index.js:770
↓ 1 callers
Function
visitImage
* Download and save the provided image URL as a local file. * @param {string} url Image URL * @returns {Promise<string>} Link to local image
index.js:802
↓ 1 callers
Function
visitLinksAndAttachToMessage
* Visits the provided web links and attaches the resulting text to the chat as a file. * @param {string} query Search query * @param {string[]} link
index.js:538
Method
constructor
()
index.js:1388
Function
createRegexRule
()
index.js:137
Method
isAvailable
* Check if the scraper is available. * @returns {Promise<boolean>} Whether the scraper is available
index.js:1400
Function
onWebSearchPrompt
(chat, _maxContext, _abort, type)
index.js:228
Method
scrape
* Scrape file attachments from a webpage. * @returns {Promise<File[]>} File attachments scraped from the webpage
index.js:1408