Media Create From Url
media_create_from_urlCreate Drupal media entities from an oEmbed URL, linking external videos or rich content to a specified media type and field.
Instructions
Create media from URL (oEmbed).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>",
"media_type": "<media_type>"
},
"name": "media_create_from_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| name | No | ||
| field_name | No | field_media_oembed_video | |
| media_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||