MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / symbols

Method symbols

src/opencode_ai/resources/find.py:207–240  ·  view source on GitHub ↗

Find workspace symbols Args: extra_headers: Send extra headers extra_query: Add additional query parameters to the request extra_body: Add additional JSON properties to the request timeout: Override the client-level default timeout for thi

(
        self,
        *,
        query: str,
        # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
        # The extra values given here take precedence over values defined on the client or passed to this method.
        extra_headers: Headers | None = None,
        extra_query: Query | None = None,
        extra_body: Body | None = None,
        timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
    )

Source from the content-addressed store, hash-verified

205 )
206
207 async def symbols(
208 self,
209 *,
210 query: str,
211 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
212 # The extra values given here take precedence over values defined on the client or passed to this method.
213 extra_headers: Headers | None = None,
214 extra_query: Query | None = None,
215 extra_body: Body | None = None,
216 timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
217 ) -> FindSymbolsResponse:
218 """
219 Find workspace symbols
220
221 Args:
222 extra_headers: Send extra headers
223
224 extra_query: Add additional query parameters to the request
225
226 extra_body: Add additional JSON properties to the request
227
228 timeout: Override the client-level default timeout for this request, in seconds
229 """
230 return await self._get(
231 "/find/symbol",
232 options=make_request_options(
233 extra_headers=extra_headers,
234 extra_query=extra_query,
235 extra_body=extra_body,
236 timeout=timeout,
237 query=await async_maybe_transform({"query": query}, find_symbols_params.FindSymbolsParams),
238 ),
239 cast_to=FindSymbolsResponse,
240 )
241
242 async def text(
243 self,

Callers

nothing calls this directly

Calls 2

make_request_optionsFunction · 0.85
async_maybe_transformFunction · 0.85

Tested by

no test coverage detected