summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-09-02 22:22:26 -0400
committerDax Raad <[email protected]>2025-09-02 22:25:32 -0400
commit11e41e7564e7cb38ba5e6dbc268863da00c836cd (patch)
treea6ada0ec7147f48467bed5874c1b3117546f5811
parentafd42bf46dbd0cbdde727b26e1bffbf409fe0e5c (diff)
downloadopencode-11e41e7564e7cb38ba5e6dbc268863da00c836cd.tar.gz
opencode-11e41e7564e7cb38ba5e6dbc268863da00c836cd.zip
docs: remove directory query param mentions from SDK docs
-rw-r--r--packages/web/src/content/docs/docs/sdk.mdx4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/web/src/content/docs/docs/sdk.mdx b/packages/web/src/content/docs/docs/sdk.mdx
index ecadec8ce..0dea30693 100644
--- a/packages/web/src/content/docs/docs/sdk.mdx
+++ b/packages/web/src/content/docs/docs/sdk.mdx
@@ -11,8 +11,6 @@ Use it to build integrations and control opencode programmatically.
[Learn more](/docs/server) about how the server works.
-> Note: Most endpoints accept a directory query parameter for working directory context.
-
---
## Install
@@ -295,7 +293,7 @@ const result = await client.session.prompt({
```javascript
// Search and read files
const textResults = await client.find.text({
- query: { pattern: "function.*opencode", directory: "/path/to/project" },
+ query: { pattern: "function.*opencode" },
})
const files = await client.find.files({