Input options for the ‘addScriptTag’ mutation.Documentation Index
Fetch the complete documentation index at: https://docs.extractbase.com/llms.txt
Use this file to discover all available pages before exploring further.
Definition
Fields
content
String
The inline JavaScript content of the script tag. Use this or ‘url’ or ‘path’.
Example: "console.log('Hello from injected script');"
id
String
The ID attribute for the new script tag. Example: "my-custom-script".
path
String
Path to a local JavaScript file to load. Not typically used in remote execution; prefer ‘content’ or ‘url’.
type
String
The type attribute for the script tag (e.g., ‘module’). Defaults to ‘text/javascript’.
url
URL
The URL source for the script tag. Use this or ‘content’ or ‘path’. Example: "https://example.com/myscript.js".