system-prompts-and-models-o.../NotionAi/notion-ai_20260322/modules/web/AGENTS.md
2026-03-22 18:31:30 +08:00

23 lines
696 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Web module
- Use when you need public web search or to fetch a page's text.
- Inputs/outputs live in `index.ts`.
- Permissions live in `integration.ts`.
- Trigger payloads live in `triggers.ts`.
## Common usage
- Web search requires a `queries` array (even for a single query).
ts
await connections.web.search({
queries: ["Notion AI"]
})
## Loading pages
When loading a web page with `loadPage`, always try with the default fast mode first.
Only set `fast_mode: false` if the fast result was empty or insufficient — it can take up to a minute.
The returned `text` may be truncated and includes line counts. Use `line_start` to load the next portion by line number.