@adcp/sdk API Reference - v17.0.0-rc.0
Documentation
GitHub
npm
Preparing search index...
callMCPTool
Function callMCPTool
callMCPTool
(
agentUrl
:
string
,
toolName
:
string
,
args
:
Record
<
string
,
unknown
>
,
authToken
?:
string
,
debugLogs
?:
DebugLogEntry
[]
,
customHeaders
?:
Record
<
string
,
string
>
,
signingContext
?:
AgentSigningContext
,
transportFetch
?:
{
(
input
:
URL
|
RequestInfo
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
(
input
:
string
|
URL
|
Request
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
}
,
requestOptions
?:
MCPConnectionPolicy
&
{
signal
?:
AbortSignal
;
requestTimeoutMs
?:
number
;
allowPrivateIp
?:
boolean
;
}
,
)
:
Promise
<
unknown
>
Parameters
agentUrl
:
string
toolName
:
string
args
:
Record
<
string
,
unknown
>
Optional
authToken
:
string
debugLogs
:
DebugLogEntry
[]
= []
Optional
customHeaders
:
Record
<
string
,
string
>
Optional
signingContext
:
AgentSigningContext
Optional
transportFetch
:
{
(
input
:
URL
|
RequestInfo
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
(
input
:
string
|
URL
|
Request
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
}
(
input
:
URL
|
RequestInfo
,
init
?:
RequestInit
)
:
Promise
<
Response
>
MDN Reference
Parameters
input
:
URL
|
RequestInfo
Optional
init
:
RequestInit
Returns
Promise
<
Response
>
(
input
:
string
|
URL
|
Request
,
init
?:
RequestInit
)
:
Promise
<
Response
>
MDN Reference
Parameters
input
:
string
|
URL
|
Request
Optional
init
:
RequestInit
Returns
Promise
<
Response
>
Optional
requestOptions
:
MCPConnectionPolicy
&
{
signal
?:
AbortSignal
;
requestTimeoutMs
?:
number
;
allowPrivateIp
?:
boolean
;
}
Returns
Promise
<
unknown
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
Documentation
GitHub
npm
@adcp/sdk API Reference - v17.0.0-rc.0
Loading...
MDN Reference