get_xcom_entry
Retrieve a specific cross-communication (XCom) entry for a task instance in an Apache Airflow DAG by providing the DAG ID, run ID, task ID, and XCom key. Retrieves both the value and metadata.
Instructions
[Tool Role]: Retrieves a specific XCom entry for a task instance.
Args:
dag_id: The DAG ID
dag_run_id: The DAG run ID
task_id: The task ID
xcom_key: The XCom key to retrieve
map_index: Map index for mapped tasks (default: -1 for non-mapped)
Returns: Dictionary containing the specific XCom entry with full value and metadata
Input Schema
Name | Required | Description | Default |
---|---|---|---|
dag_id | Yes | ||
dag_run_id | Yes | ||
map_index | No | ||
task_id | Yes | ||
xcom_key | Yes |
Input Schema (JSON Schema)
{
"properties": {
"dag_id": {
"title": "Dag Id",
"type": "string"
},
"dag_run_id": {
"title": "Dag Run Id",
"type": "string"
},
"map_index": {
"default": -1,
"title": "Map Index",
"type": "integer"
},
"task_id": {
"title": "Task Id",
"type": "string"
},
"xcom_key": {
"title": "Xcom Key",
"type": "string"
}
},
"required": [
"dag_id",
"dag_run_id",
"task_id",
"xcom_key"
],
"type": "object"
}