[GH-ISSUE #7919] [Feature Request]: built-in web search with an API key, able to run on every message #4350

Closed
opened 2026-10-22 04:05:54 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @coffeepanda02 on GitHub (Oct 20, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7919

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

For roleplay, characters often need current real-world information, like new products, brands, prices, or events, that the model's training data doesn't have. Marinara has no built-in internet search. Webhook tools can't send API keys or headers, and a tool only runs when the model decides to call it, so there's currently no reliable way to get search on every turn without building a separate relay service.

Proposed solution

A built-in Web Search feature where I enter my own search API key (Tavily, SearXNG, Brave, or similar). It would include an auto-search option per chat that searches before every reply and injects the results into the prompt. Useful controls would be the number of results, a size limit on the injected text, and an optional "only search when the message mentions something real-world" mode to save API quota.

Alternatives considered

Using webhook tools with a relay service in between, but that requires coding knowledge and a separate hosted service, and the tool only runs if the model decides to call it.

  • Manually looking things up and pasting the results into the chat, which works but breaks immersion and doesn't scale for long roleplays.

Additional context

Many roleplay and worldbuilding scenarios involve current real-world details (products, brands, news) that models trained months ago can't know. Built-in search with a user-supplied API key would help anyone using Marinara for that kind of story.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • [] I DID NOT read this template and provide the requested details.

PS: Sorry I accidentally send the last request empty, my hand slipped.

Originally created by @coffeepanda02 on GitHub (Oct 20, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7919 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? For roleplay, characters often need current real-world information, like new products, brands, prices, or events, that the model's training data doesn't have. Marinara has no built-in internet search. Webhook tools can't send API keys or headers, and a tool only runs when the model decides to call it, so there's currently no reliable way to get search on every turn without building a separate relay service. <!-- Describe the pain point or gap this feature would address --> ## Proposed solution A built-in Web Search feature where I enter my own search API key (Tavily, SearXNG, Brave, or similar). It would include an auto-search option per chat that searches before every reply and injects the results into the prompt. Useful controls would be the number of results, a size limit on the injected text, and an optional "only search when the message mentions something real-world" mode to save API quota. <!-- What would you like to see added or changed? --> ## Alternatives considered Using webhook tools with a relay service in between, but that requires coding knowledge and a separate hosted service, and the tool only runs if the model decides to call it. - Manually looking things up and pasting the results into the chat, which works but breaks immersion and doesn't scale for long roleplays. <!-- Any other approaches you thought about? --> ## Additional context Many roleplay and worldbuilding scenarios involve current real-world details (products, brands, news) that models trained months ago can't know. Built-in search with a user-supplied API key would help anyone using Marinara for that kind of story. <!-- Optional: mockups, related issues, references, or examples --> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [] I DID NOT read this template and provide the requested details. PS: Sorry I accidentally send the last request empty, my hand slipped.
bsakaguchi 2026-10-22 04:05:54 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Oct 21, 2026):

We already support web search; you need to enable it in the Function Calling section of Chat Settings. Not every model supports this.

<!-- gh-comment-id:6312379199 --> @SpicyMarinara commented on GitHub (Oct 21, 2026): We already support web search; you need to enable it in the Function Calling section of Chat Settings. Not every model supports this.
Author
Owner

@coffeepanda02 commented on GitHub (Oct 21, 2026):

Thanks for the reply! I looked at the built-in web_search, but it isn’t quite what I meant. I was asking for two specific things: (1) the option to use my own search API key (like Tavily), and (2) an option to run the search automatically before every reply, not only when the model decides to call a tool. Does the built-in tool support either of these? If not, could that be considered as a feature? Thank you!

<!-- gh-comment-id:6317887755 --> @coffeepanda02 commented on GitHub (Oct 21, 2026): Thanks for the reply! I looked at the built-in web_search, but it isn’t quite what I meant. I was asking for two specific things: (1) the option to use my own search API key (like Tavily), and (2) an option to run the search automatically before every reply, not only when the model decides to call a tool. Does the built-in tool support either of these? If not, could that be considered as a feature? Thank you!
Author
Owner

@coffeepanda02 commented on GitHub (Oct 22, 2026):

@SpicyMarinara Following up on my comment above in case it got missed. Thank you so much for your time and efforts!!

<!-- gh-comment-id:6333636006 --> @coffeepanda02 commented on GitHub (Oct 22, 2026): @SpicyMarinara Following up on my comment above in case it got missed. Thank you so much for your time and efforts!!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4350
No description provided.