Prompt API tools

43 views
Skip to first unread message

Keith Pittner

unread,
Aug 28, 2025, 4:38:47 PM (11 days ago) Aug 28
to Chrome Built-in AI Early Preview Program Discussions
I searched the discussions but didn't find anything about tools in the Prompt API.
I'm wondering if it actually works. I've been trying this but it never recognizes or even seems aware of the tools:

tools: [
{
name: "getAllEventsSummaryList",
description: "Get the list of user Events",
async execute() {
console.log("AI tool call : getAllEventsSummaryList");
return JSON.stringify(await getAllEventsSummaryList("649f175093dc00006ce4a48b"));
},
},
{
name: "getEventAttendees",
description: "Get the list of Event attendees",
inputSchema: {
type: "object",
properties: {
event_id: {
type: "string",
description: "The id of the specific event we want to get the attendees for",
},
},
required: ["event_id"],
},
async execute({ event_id }) {
console.log("AI tool call : getEventAttendees : "+ event_id);
return JSON.stringify(await getEventAttendees(event_id));
},
}
]


Die4Ever2005

unread,
Aug 28, 2025, 4:51:09 PM (11 days ago) Aug 28
to Chrome Built-in AI Early Preview Program Discussions, Keith Pittner
I've been watching for this too, it's not implemented yet. 

Keith Pittner

unread,
Aug 28, 2025, 5:13:11 PM (11 days ago) Aug 28
to Chrome Built-in AI Early Preview Program Discussions, Die4Ever2005, Keith Pittner
ok cool thanks :)

Ryan Seddon

unread,
Aug 29, 2025, 5:06:16 AM (10 days ago) Aug 29
to Chrome Built-in AI Early Preview Program Discussions, Keith Pittner, Die4Ever2005
I've been playing with trying to get tools working with Chrome and Edge without the tools abilities and got pretty far: https://ryanseddon.com/ai/how-to-build-an-agent-on-device/

That uses a carefully crafted prompt and has the temperature turned way down to get reliable results.

I also explored using responseContraints but had trouble scaling it beyond a single tool. I have branch with some attempts: https://github.com/ryanseddon/build-local-agent/commit/20b61548da77b3d1d7ab45be351cff82473f370a

Thomas Steiner

unread,
Aug 29, 2025, 5:16:09 AM (10 days ago) Aug 29
to Ryan Seddon, Chrome Built-in AI Early Preview Program Discussions, Keith Pittner, Die4Ever2005
Hey all,

Tool use is specified, but not fully implemented yet. The feature is owned by the Microsoft Edge team, you can follow their work in crbug/422803232. We'll announce it on the mailing list when it's ready for a test drive. You can still get OK far with the emulating tool use approach (deep-link to a past commit).

Cheers,
Tom 

--
You received this message because you are subscribed to the Google Groups "Chrome Built-in AI Early Preview Program Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chrome-ai-dev-previe...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chrome-ai-dev-preview-discuss/214aa9cf-cd4e-4c40-b5bb-892039eefb1an%40chromium.org.


--
Thomas Steiner, PhD—Developer Relations Engineer (blog.tomayac.comtoot.cafe/@tomayac)

Google Spain, S.L.U.
Torre Picasso, Pl. Pablo Ruiz Picasso, 1, Tetuán, 28020 Madrid, Spain

CIF: B63272603
Inscrita en el Registro Mercantil de Madrid, sección 8, Hoja M­-435397 Tomo 24227 Folio 25

----- BEGIN PGP SIGNATURE -----
Version: GnuPG v2.4.8 (GNU/Linux)

iFy0uwAntT0bE3xtRa5AfeCheCkthAtTh3reSabiGbl0ck
0fjumBl3DCharaCTersAttH3b0ttom.xKcd.cOm/1181.
----- END PGP SIGNATURE -----
Reply all
Reply to author
Forward
0 new messages